错误:GenerateWinPRTManifest

时间:2013-01-20 14:43:47

标签: c# .net windows-phone-8 windows-phone monogame

我尝试创建一个新的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

2 个答案:

答案 0 :(得分:2)

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

答案 1 :(得分:-1)

只是一次更新 - 我今天在WP8.0项目中也遇到了同样的错误。我有两个项目使用由NuGet添加的Lumia.Imaging SDK - 不同的时间,所以不同的lib版本。但是只需在VS2013中删除两个项目中的引用并确保目标相同.dll对我来说并不适用。我必须在我的旧项目的文本编辑器中编辑* .csproj文件,并删除该库中的所有引用。之后只需手动添加.dll就可以了。