的Visual Studio 2015年的NuGet和“相同的密钥已经被添加。” [英] Visual Studio 2015, Nuget and “same key has already been added.”

查看:418
本文介绍了的Visual Studio 2015年的NuGet和“相同的密钥已经被添加。”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Visual Studio 2015年RC。当我打开一个控制台应用程序或Windows Phone 8的Silverlight项目,一切工作正常,我可以使用的NuGet没有问题。

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

当我打开一个通用的应用项目(的Windows 8.1 +的Windows Phone 8.1)的NuGet休息。当我打开的NuGet控制台,我看

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

当我尝试使用的NuGet GUI安装的NuGet包,我得到了同样的错误。

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

一个更奇怪的事情。当我打开VS2015 RC无任何项目和打开的NuGet控制台,我没有得到这个错误。后来,当我打开我的通用应用程序的项目,会出现错误。

One more strange thing. When I open VS2015 RC without any projects and open the Nuget console, I do not get the error. Then when I open my Universal App project, the error appears.

我敢肯定它是连接到通用应用程序项目。

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

我在睾丸的VS2013通用应用程序项目,一切工作正常那里,的NuGet没有问题。

I testes the Universal App project in VS2013 and everything works fine there, no problems with Nuget.

我试过的安装的NuGet包"相同的密钥已被添加" 但它并没有帮助。我想这是因为另一个文件夹可以在我的情况被损坏。

I tried all the steps in installing nuget package "same key has already been added." but it did not help. I guess it is because another folder may be corrupted in my case.

发生在我身上在两个单独的机器,无论是运行Windows 8.1专业版,一个人只有VS2015 RC和既有VS2013 Pro和VS2015专业版。

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

推荐答案

我曾与VS2013同样的问题不时。虽然我没有在这里解决的具体步骤,下面总结了工作(也可能是超必杀)。

I have had the same problem with VS2013 from time to time. While I don't have the exact steps to resolve here, the following summarizes what worked (it may be over kill).


  1. 使用软件包管理器删除所有的包

  2. 删除应用程序库结合部分的配置

  3. 通过包管理器重新添加包

这是一个Windows机器上,你可能需要重新启动每一步之间的视觉工作室。

It is a windows machine, you may need to restart visual studio between each step.

这篇关于的Visual Studio 2015年的NuGet和“相同的密钥已经被添加。”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆