Error: GenerateWinPRTManifest

I tried to create a new monogame

windows phone 8 project , when I tried to run it I got this error:

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

      

+3


source to share


2 answers


I got this error today.
I was referencing DLLs that were compiled for a different architecture (ARM instead of x86).
So built them again, removed their link and re-linked them.
Hope it helps



+2


source


Just one update - today I have the same error in my WP8.0 project. I have two projects using Lumia.Imaging SDK added by NuGet - different times so different lib version. But just remove the link in VS2013 for both projects and make sure that targeting the same .dll was not enough for me. I had to edit the * .csproj file in my old project's text editor and remove all reference to this library. And after that just add the .dll manually, works great for me.



-1


source







All Articles