我正在尝试使用Azure Mobile SQLiteStore包为UWP Xamarin.Forms编写应用程序.
我厌恶SQLitePCL包,这是上面提到的包的依赖.
在我的UWP项目中,我引用了通用Windows平台的扩展SQLite,它也依赖于Microsoft.VCLibs
错误是:无法加载DLL的'sqlite3.dll':找不到指定的模块.(来自HRESULT的异常:0x8007007E)
Android应用程序运行正常,只有UWP有这个问题,一旦它开始调用SQLite就会崩溃应用程序.
和Stacktrace:
at SQLitePCL.SQLiteConnection.SetTemporaryDirectory()
at SQLitePCL.SQLiteConnection..ctor(String fileName, SQLiteOpen openFlag, Boolean setTemporaryDirectory)
at Microsoft.WindowsAzure.MobileServices.SQLiteStore.MobileServiceSQLiteStore..ctor(String fileName)
at WellDoneIt.Services.WellDoneItMobileService.d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at WellDoneIt.Services.WellDoneItMobileService.d__8.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at WellDoneIt.ViewModel.ListViewModel.d__4.MoveNext()
--- End of stack trace from previous location …Run Code Online (Sandbox Code Playgroud) sqlite azure azure-mobile-services win-universal-app xamarin.forms