I have a SQLite database file I include in my resources off which my app runs. It is marked as a BundledResource and marked "Copy To Output DIrectory". The following lines of code used to work, but now there is no file where it is looking, nor anywhere else I can find. I have no Microsoft.Bcl or .http refefrences/packages as I have seen in other posts. I have changed my Xamarin.iOS.Common.Targets as discussed here: http://forums.xamarin.com/discussion/30825/after-upgrading-to-unified-api-resources-images-arent-being-added-to-bundle Still no luck. Any ideas?
string dbPath = Path.Combine (System.Environment.GetFolderPath (System.Environment.SpecialFolder.Resources), "dbfile.db");
SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS platform = new SQLite.Net.Platform.XamarinIOS.SQLitePlatformIOS ();
SQLiteConnection _connection = new SQLiteConnection (platform, dbPath);
App.SetDatabaseConnection (_connection);