c# - UWP - 内部编译器错误 : An item with the same key has already been added

标签 c# .net visual-studio-2015 uwp .net-native

我正在使用 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. 

您可以在屏幕截图中看到错误。

enter image description here

enter image description here

我已经阅读了以下博客,但没有找到解决方案。任何人的帮助将不胜感激。谢谢。

UWP Social Msdn Internal Error - 1

UWP Social Msdn Internal Error - 2

UWP Social Msdn Internal Error - 3

Stackoverflow post

最佳答案

您需要将 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/

相关文章:

c# - 单元测试依赖于 UserManager<TUser> 的 Controller 的最佳实践?

c# - 我的螺旋矩阵算法的错误在哪里?矩阵大小 = 输入 N^2

c# - 如何查看系统音频是否静音?

c# - MSMQ CreateCursor NullReferenceException 异常

c# - CsvHelper 在 VisualStudio 2013 中非常慢

c# - 比较两个不同枚举的最佳方法是什么?

c# - 如何知道 C# 中属性位置的层次结构?

c# - WCF rest 入门工具包和用于 REST 服务的 Web 应用程序工具包之间的区别

.net - 如何让 Visual Studio 2015 添加带有命名空间声明的新 VB.NET 类?

visual-studio-2015 - InfVerif.exe 的示例用法