我使用XAMARIN開發UWP應用程序。我在使用.NET本地工具鏈進行編譯時遇到了問題。當我檢查的標誌「使用.NET本地工具鏈編譯」,我得到在運行時出現錯誤的「Xamarin.Init」的方法:在 系統‘System.IO.FileNotFoundException’:Xamarin with UWP - 「FileNotFound_AssemblyNotFound,ClrCompression」
「拋出異常。 Private.Reflection.Core.dll
附加信息:FileNotFound_AssemblyNotFound,ClrCompression 欲瞭解更多信息,請訪問 http://go.microsoft.com/fwlink/?LinkId=623485「
和下一個:
「拋出異常:FileNotFound_AssemblyNotFound,sqlite3的:在 System.Private.Reflection.Core.dll
附加信息 'System.IO.FileNotFoundException'。對於 瞭解更多信息,請訪問:http://go.microsoft.com/fwlink/?LinkId=623485「
我加SqlLite assmebly,根據建議從 https://developer.xamarin.com/guides/xamarin-forms/platform-features/windows/installation/universal/#Dependency_Services_and_.NET_Native_Compilation
List<Assembly> assembliesToInclude = new List<Assembly>();
var assembly = typeof(SQLitePlatformWinRT).GetTypeInfo().Assembly;
assembliesToInclude.Add(assembly);
//throws error there
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
有誰知道什麼問題
?
我在微軟工作,很樂意提供幫助。你可以發送你的project.json和project.lock.json文件給我們嗎? [email protected]。 –
對此有何結果?我與我的Xamarin.Uwp項目有同樣的問題,無法解決它。 – Tom
@Tom在下面看到我的答案,並讓我知道它是否有幫助 – Ania