错误:GenerateWinPRTManifest
我试图创建一个新的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.d__20.MoveNext() MonoGameWP8
我今天收到了这个错误。
我引用了为不同架构(ARM而不是x86)编译的DLL。
所以再次构建它们,删除它们的引用并再次引用它们。
希望这可以帮助
只有一个更新 – 我的WP8.0项目今天也有同样的错误。 我有两个项目使用由NuGet添加的Lumia.Imaging SDK – 不同的时间,因此不同的lib版本。 但是只需在VS2013中删除两个项目中的引用并确保目标相同.dll对我来说并不适用。 我不得不在我的旧项目的文本编辑器中编辑* .csproj文件,并删除该库中的所有引用。 之后只需手动添加.dll就可以了。