MusicBee Wiki
MusicBee Wiki
Advertisement

In build file, include Musicbee's own SQLite dll: <code=xml>

<references>
<include name='C:\Program Files (x86)\MusicBee\System.Data.SQLite.dll'/>  
</references>

In plugin, just SQlite away:

<code=csharp>using System.Data.SQLite; //http://system.data.sqlite.org

pluginDBFileName = mbApi.Setting_GetPersistentStoragePath()+sep+about.Name+".db"; 

DB = new SQLiteConnection(@"Data Source="+pluginDBFileName);
DB.Open();

Advertisement