microsoft.data.sqlite

Works on WPF. But on VSTO project, throws error: Could not load file or assembly 'SQLitePCLRaw.core, Version=2.0.2.669, Culture=neutral

流过昼夜 提交于 2021-01-29 14:33:43
问题 I've created a .NET Standard 2.0 class library project that works fine when referenced by a WPF App (.NET Framework 4.8) project. But when the same library is referenced by a MS Office VSTO Project (also using .NET Framework 4.8), I get the following error on the code line shown below: Remarks : I'm using VS2019 , Windows20 Pro , Microsoft.Data.Sqlite and following example from same link. Exact same code works fine on WPF app. I also tried installing SQLitePCLRaw.core package (as mentioned in

.NET 5 excludes some libraries from single file publication

て烟熏妆下的殇ゞ 提交于 2020-12-31 16:46:54
问题 I have a little problem with single file executable publish with .NET 5. Infact, it does not include all libraries in the executable file, and produces multiple files. In my example I'm using a library for SQLite (Microsoft.Data.Sqlite) and, after compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,

.NET 5 excludes some libraries from single file publication

拥有回忆 提交于 2020-12-31 16:42:30
问题 I have a little problem with single file executable publish with .NET 5. Infact, it does not include all libraries in the executable file, and produces multiple files. In my example I'm using a library for SQLite (Microsoft.Data.Sqlite) and, after compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,

.NET 5 excludes some libraries from single file publication

你离开我真会死。 提交于 2020-12-31 16:37:16
问题 I have a little problem with single file executable publish with .NET 5. Infact, it does not include all libraries in the executable file, and produces multiple files. In my example I'm using a library for SQLite (Microsoft.Data.Sqlite) and, after compilation, e_sqlite3.dll is not included. Instead, in the output folder, it produces two files (excluding the pdb file): > e_sqlite3.dll > WpfApp1.exe 回答1: By reading documentation Single-file doesn't bundle native libraries by default. On Linux,