Good afternoon,
I wrote some code with MonoDevelop on Linux. The program that i'm writing use Sqlite to store datas, so i've imported the Mono.Data.Sqlite
, and it work perfectly.
MonoDeveloper imported libraries
When i tried to copy the project on Windows and opened with Visual Studio 2019, i've got some troubles.
First of all, VS tells me that the library was not found.
When i try to compile VS throws me the error CS0246, that says that the type or namespace name "Mono" could not be found.
I've tried to reimported the Dll. The library was imported successfully, so that the code compiles without problems, but when I try to run the program, another error is thrown:
System.BadImageFormatException
Could not load file or assembly 'Mono.Data.Sqlite, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756' or one of its dependencies. (HRESULT:0x80131058).
I'm compiling with x86.
Thanks for your help!
In some cases, especially when moving project on a another computer, the following steps can help to prepare environment to compile projects, that require the NuGet Mono.data.sqlite
package:
Mono.Data.sqlite
from the project's
references.Tools
► NuGet Package Manager
►
Manage NuGet Packages for Solution...
Then select Browse
, find
Mono.data.sqlite
package and install it.User contributions licensed under CC BY-SA 3.0