私はXamarin Formsを使用してアプリケーションを開発しています。データベースが必要なので、Frank A.KruegerのNuGetパッケージマネージャーからsqlite-net-pcl
をインストールしてください。私はPCLプロジェクトで接続しようとします:Windows Phone 8.1アプリケーションでSQLiteデータベースに接続中にエラーが発生しました
ISQLiteHelper sqlLiteHelper = DependencyService.Get<ISQLiteHelper>();
string pathToDatabaseFile = sqlLiteHelper.GetLocalDatabaseFilePath(databaseFilename);
this.database = new SQLiteConnection(pathToDatabaseFile);
私は例外があります。
"Unable to load DLL 'e_sqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"
私はいくつかの答えが続き、ダウンロードしてsqlite-wp81-winrt-3180000.vsix
をインストールし、私は私のWinPhone 8.1プロジェクトに次の参照を追加したより:リファレンスマネージャ - >のWindows Phone 8.1 - >拡張機能 - Windowsの8.1用>のSQLiteしかし、それは助けにはなりませんでした私。私は同じエラーがあります。
ターゲットプラットフォームをx86に変更しました。私は私のPCが持っているようX64に私のターゲットプラットフォームを変更した場合、私はそのエラーを得た
"Any CPU" is not supported by the referenced SDK "Microsoft.VCLibs, Version=12.0". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM". App1.WinPhone
:任意のCPUのために私はエラーを取得します。
"X64" is not supported by the referenced SDK "Microsoft.VCLibs, Version=12.0". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM". App1.WinPhone
"X64" is not supported by the referenced SDK "SQLite.WP81, Version=3.18.0". Please consider changing the targeted processor architecture of your project (in Visual Studio this can be done through the Configuration Manager) to one of the architectures supported by the SDK: "x86, ARM". App1.WinPhone