Error: GenerateWinPRTManifest

本文关键字:GenerateWinPRTManifest Error | 更新日期: 2023-09-27 17:54:30

我试图创建一个新的monogame windows phone 8项目,当我试图运行它时,我得到了这个错误:

Error   1 The "GenerateWinPRTManifest" task failed unexpectedly.
System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifest.CCIHarvestRegistrationInformation(ProcessWinmd processWinmd, Dictionary`2 inprocServers)
   at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifest.UpdateWinmdRegistration()
   at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifest.ExecuteImplementation()
   at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifest.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() MonoGameWP8

Error: GenerateWinPRTManifest

我今天收到这个错误。
我引用了针对不同架构(ARM而不是x86)编译的dll。
所以重新构建它们,删除它们的引用并再次引用它们。
希望对大家有所帮助

只是一个更新-我今天在我的WP8.0项目中也有同样的错误。我有两个使用Lumia的项目。NuGet添加的成像SDK -不同的时间,所以不同的lib版本。但只是在两个项目上删除VS2013中的参考,并确保目标相同的。dll对我来说是不够的。我不得不编辑*。我旧项目的文本编辑器中的Csproj文件,并删除该库上的所有参考。之后,它只是手动添加。dll对我来说很好。

相关文章:
  • 没有找到相关文章