On Windows, I installed MonoDevlop and tried compiling the SQLite example which requires the Mono.Data.SQLiteClient reference. I opened up "Edit References" within MonoDevelop and I have absolutely no Mono references available wi开发者_JS百科th the exception of Mono.Cairo and Mono.Posix.
I thought perhaps I'd made a mistake by no installing the Mono framework first, so I installed Mono, then did a repair installation on MonoDevelop but the references are still not there?
Can somebody help me please?
Cheers Sparky
Firstly, I believe Mono.Data.SqliteClient has been deprecated in favour of Mono.Data.Sqlite.
By default, MonoDevelop on Windows targets the .NET runtime for building/running/etc. The libraries available in the "Edit References" dialog are those installed into the target runtime, i.e. .NET.
If you have Mono installed, you also have the choice of targeting Mono. You can change the default target runtime using the Preferences->.NET Runtimes options panel, or change it for only the current solution using the Project->Active Runtime Menu.
Regardless which runtime you build with, you should be able to run/debug with another runtime using the Run->Run With... menu.
You could also install Mono.Data.SQLite into the .NET AssemblyFolders.
精彩评论