[英]Can not add a nuget package in visual studio 2015 web api project
I am not able to add a simple nuget package in Visual Studio 2015 Web API project. 我无法在Visual Studio 2015 Web API项目中添加简单的nuget包。
I have Visual Studio 2015 Professional Update 1. 我有Visual Studio 2015专业更新1。
Following are the steps I am following: 以下是我要执行的步骤:
Result: Not able to add package: 结果:无法添加包:
And this is one of last few lines in the output window "Unable to locate Dependency Newtonsoft.Json >= 8.0.2" 这是输出窗口“无法找到Dependency Newtonsoft.Json> = 8.0.2”的最后几行之一
Errors windows says something different" 错误窗口表示有所不同”
Error NU1001 The dependency Newtonsoft.Json >= 6.0.6 could not be resolved. 错误NU1001无法解决依赖项Newtonsoft.Json> = 6.0.6。
Would be great if someone can help. 如果有人可以提供帮助,那就太好了。
FYI: my project.json looks like this: 仅供参考:我的project.json看起来像这样:
Please let me know if there is some more info I should add, I can share all steps screen shots. 请让我知道是否需要添加更多信息,我可以共享所有步骤的屏幕截图。
I also have been bangin' my head with this for 5 days already. 我也已经为此动了5天。
I have been trying to install the erroneous library using the nuget, both on console and the GUI. 我一直试图使用nuget在控制台和GUI上安装错误的库。 Did not work and it made me nuts and go wild.
没有工作,这让我发疯了。 Only to find out, that the solution was to locate the library manually on your local drive located on your users folder, you should find a folder /.dnx/packages
只是发现解决方案是手动将库放在用户文件夹中的本地驱动器上,所以您应该找到一个文件夹/.dnx/packages
Locate your library on that folder, adding it manually. 在该文件夹中找到您的库,然后手动添加。 I'm not sure if this is the case with you, but it worked for me.
我不确定您是否遇到这种情况,但这对我有用。
Hope this helps. 希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.