Visual Studio 2015, Nuget and "the same key has already been added."

I have a Visual Studio 2015 RC. When I open a console application or a Windows Phone 8 Silverlight project, everything works fine, I can use Nuget without any problems.

When I open the Universal App project (Windows 8.1 + Windows Phone 8.1), Nuget breaks. When I open the Nuget console, I see

enter image description here

When I try to install the Nuget package using the Nuget GUI, I get the same error.

Another weird thing. When I open VS2015 RC without any projects and open the Nuget console, I do not get an error. Then, when I open the Universal App project, an error appears.

I am sure that it is connected to the Universal App project.

I am testing the Universal App project in VS2013 and everything works fine there, no problem with Nuget.

I tried all the steps in installing the nuget package "the same key has already been added." , But that didn't help. I assume this is due to the fact that in my case another folder might be damaged.

It happens to me on two separate machines, both run Windows 8.1 Pro, one only has VS2015 RC, and it has VS2013 Pro and VS2015 Pro.

+5
source share
1 answer

I had the same issue with VS2013 from time to time. While I don't have exact steps to solve here, the following summarizes what worked (maybe it’s a kill).

  • use package manager to remove all packages
  • delete the library binding section in the application configuration
  • re-add packages through package manager

This is a Windows machine; you may need to restart visual studio between each step.

0
source

All Articles