UWP应用程序打包错误

时间:2017-03-29 13:08:43

标签: uwp

我正在尝试为我一直在努力的UWP应用创建一个包,但我一直得到以下异常:

Internal compiler error: MCG0024:UnresolvableTypeReference Unresolvable type reference 'System.ICloneable' in 'Assembly(Name=mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)' found. Please check the references in your build system. A reference is either missing or an assembly is missing an expected type.

只有当我尝试在发布模式下创建软件包时才会出现此问题,它不会在调试模式下发生。

1 个答案:

答案 0 :(得分:0)

这意味着您的应用程序正在使用UWP中没有的类或引用。 .NET和UWP的.NET Core之间支持的类不一样,并且在尝试创建发布包时通常会出现问题。

例如iTextSharp has blogged about此问题之前。

解决方案是浏览您的参考资料并确保所有内容与UWP应用程序兼容。