Documenting this as Google was unable to find anything. Bing found nothing exact that matched but a few things that pointed me in the right direction.
I've had some "fun" trying to resolve the following error relating to the "GenerateWinPRTManifestV2" task during build.
Error 255 The "GenerateWinPRTManifestV2" 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.GenerateWinPRTManifestV2.CCIHarvestRegistrationInformation(ProcessWinmd processWinmd, Dictionary`2 inprocServers)
at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifestV2.UpdateWinmdRegistration()
at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifestV2.ExecuteImplementation()
at Microsoft.Silverlight.Build.Tasks.GenerateWinPRTManifestV2.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
It turns out that there were two projects referencing different copies of the same library and MSBuild wasn't able to differentiate between them. (They weren't strongly named.)
The fix was just to make sure that all the projects in the solution only use one version of any library.
I hope this helps save someone else some time if they hit the issue and end up searching for the same task name.
Remember. Strong names FTW!
GenerateWinPRTManifestV2 error
Related Posts:
Linking to your app in the storeIt's easy to create a link to an app in the store. You just view it in a browser and then just copy the URI and then you can paste it for all to reuse… Read More
Portable Class Libraries (PCLs) now on all platformsIf you care about the legal issues of redistributing third party libraries - which of course you should - this is huge news. Earlier this week Micros… Read More
Get GRD3 now, in just 3 easy stepsIf you're a developer and want to get Windows Phone 8.0 Update 3 on a device now, just follow these simple steps. Step 0 - Make sure your device is … Read More
Alternatives to long web requests with long timeoutsEarlier I posted about how you can't create a web request with a timeout of more than the internal maximum of 60 seconds. I was asked on Twitter abou… Read More
Making web requests with long timeouts on Windows PhoneIt's quite common (I've seen/heard it several times) for people to want to make web requests from their app and have a very long time out. I.E. a time… Read More
thanks for the advice have same problem, but in a solution with many projects. Have not yeet found the culprit
ReplyDelete