我正在使用 VS2015 开发 UWP(通用 Windows 平台应用程序)。第一次我创建了一个包(.appxupload)并将其上传到商店。现在,如果我运行我的应用程序,它运行顺利且良好,但是当我再次创建一个包时,会出现以下错误。
Internal compiler error: An item with the same key has already been added
C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\x86\ilc\IlcInternals.targets(886,5): error : Internal compiler error: An item with the same key has already been added.
您可以在屏幕截图中看到错误。
我已经阅读了以下博客,但没有找到解决方案。任何人的帮助将不胜感激。谢谢。
UWP Social Msdn Internal Error - 1
UWP Social Msdn Internal Error - 2
最佳答案
您需要将 Visual Studio 2015 升级到 Update 1。此问题和许多其他错误/错误已得到修复。更新后,请务必在构建包之前检查 Release模式下的“使用 .NET Native 工具链编译”和“优化代码”选项。
关于c# - UWP - 内部编译器错误 : An item with the same key has already been added,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34071179/