sqlite-net: Path is not of a legal form when swapping from sqlite-net to sqlite-net-pcl
So I have this code
private async Task LoadDatabase()
{
var filePath = Path.Combine(this.CacheDir, "data.db");
_db = new SQLiteAsyncConnection(filePath);
await _db.CreateTableAsync<MusicSheetModel>();
}
which basically is
“I:\\Repositories\\github.com\\redacted\\.debug.settings\\data.db”
or a folder under documents.
I previously used the sqlite-net package and it worked without a hitch. However, the service I am using needs the sqlite3 dll references and so I swapped to the pcl version. The pcl version however does not like the path I am giving it. The code itself did not change. I literally changed nothing but the nuget packages.
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 15 (6 by maintainers)
Just wasted 2 hours to get it work. This package does not work with Costura.Fody or anything else that embeds references as resources.