Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

The type 'Platform' does not exist in the namespace 'SQLite.Net'

$
0
0

Cant seem to get SQLite.Net PCL to work

Performed the following:

Opened Xamarin Studio for Windows Version 5.9.6
Start a new Xamarin.Forms Solution
Update All Packages
Run default App in emulator to make sure it functions.
Go to the PCL and Right click packages Add Packages.

Add "SQLite.Net PCL"
published:4/26/2015
id:SQLite.Net-PCL
dependencies:None

in the constructor for App in the PCL I added
SQLite.Net.SQLiteConnection conn = new SQLite.Net.SQLiteConnection (SQLite.Net.Platform.XamarinAndroid, "/data/notgoingtogetthisfar.db");

on compile I get

Error CS0234: The type or namespace name 'Platform' does not exist in the namespace 'SQLite.Net' (are you missing an assembly reference?) (CS0234)

I assume there is a dependency or something I am missing could someone please point me in the right direction. Been chasing this for the better part of 5 hours now.

If I try the older version.
SQLite-Net PCL
published:1/22/2015
id:SQLite.Net-PCL
dependencies:SQLitePCL.raw_basic(>0.7.1)

This older version seems to work. Anyone got a guess as to what I'm missing in order to use the later version?
Also is there anything I'm really missing out on by just using the older one that works instead of its newer unstable brother?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>