【发布时间】:2016-12-15 07:06:57
【问题描述】:
我使用 Xamarin 开发 UWP 应用程序。 .NET 本机工具链存在编译问题。当我检查标志 "Compile with .NET Native tool chain" 时,"Xamarin.Init" 方法在运行时出现错误:
“抛出异常:'System.IO.FileNotFoundException' in System.Private.Reflection.Core.dll
附加信息:FileNotFound_AssemblyNotFound、ClrCompression。 如需更多信息,请访问 http://go.microsoft.com/fwlink/?LinkId=623485"
还有下一个:
“抛出异常:'System.IO.FileNotFoundException' in System.Private.Reflection.Core.dll
附加信息:FileNotFound_AssemblyNotFound,sqlite3。为了 更多信息,请访问http://go.microsoft.com/fwlink/?LinkId=623485"
根据here的建议,我添加了SqLite组件
List<Assembly> assembliesToInclude = new List<Assembly>();
var assembly = typeof(SQLitePlatformWinRT).GetTypeInfo().Assembly;
assembliesToInclude.Add(assembly);
//throws error there
Xamarin.Forms.Forms.Init(e, assembliesToInclude);
我的参考资料:
有谁知道问题出在哪里?
【问题讨论】:
-
我在 Microsoft 工作,很乐意提供帮助。您可以将您的 project.json 和 project.lock.json 文件发送给我们吗? dotnetnative@microsoft.com.
-
这有什么结果吗?我的 Xamarin.Uwp 项目也有同样的问题,无法解决。
-
@Tom 在下面看到我的回答,如果有帮助请告诉我
标签: sqlite xamarin uwp xamarin.ios .net-native