Reputation: 60213
In Xamarin Studio on Mac OS X 10.10.2 I wrote a C# class that uses SQLiteConnection
.
Xamarin complained about not knowing the class so I added using System.Data.SQLite;
Then when compiling Xamarin said:
The type or namespace name `SQLite' does not exist in the namespace `System.Data'.
Are you missing an assembly reference? (CS0234) (CmisSyncContextMenu)
So I opened Edit References
and added the Mono.Data.Sqlite
:
I clicked OK, pressed Rebuild all
and... I get the exact same error message as above.
What am I doing wrong?
Upvotes: 0
Views: 1072
Reputation: 47967
If you open References in the Solution window and double click Mono.Data.Sqlite you will see that it does not use the System.Data.Sqlite namespace but the Mono.Data.Sqlite namespace.
So you will either need to change the using statement in your code or use a different version of the Sqlite assembly, perhaps from NuGet.
Upvotes: 1