NuGet Package restore failed for project Miscellan

2019-01-23 00:23发布

I have such error in vs 2012: NuGet Package restore failed for project Miscellaneous Files: Value cannot be null or an empty string. Parameter name: root. 0 0

I see that it's a bug https://nuget.codeplex.com/workitem/3780 that was fixed for version 2.8 But I can't find the 2.8 version on https://nuget.codeplex.com Is it possible to fix the error without the installation of the 2.8 version? Or how to get the 2.8?

15条回答
聊天终结者
2楼-- · 2019-01-23 00:59

You can get a non-release version of NuGet 2.8 here. Instructions are here: Installing a CI build. This fix the issue for me on VS2010.

查看更多
做自己的国王
3楼-- · 2019-01-23 01:02

I right clicked the solution and chose "Enable Nuget Package Restore". This fixed the problem.

This link from MSDN shows how:

http://blogs.msdn.com/b/dotnet/archive/2013/06/12/nuget-package-restore-issues.aspx

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-01-23 01:04

I uninstalled and reinstalled nUnit 3.7.1 and everything started working again. I have a few nuget packages, but nunit 3.7.1 is the only one I reinstalled, I left the rest alone.

查看更多
做自己的国王
5楼-- · 2019-01-23 01:05

None of the above answers helped for me, and it was getting pretty frustrating.

What worked for me (with Visual Studio Professional 2017, version 15.8.5) was doing the following steps;

1) Tools > Options > NuGet Package Manager > Click 'Clear All NuGet Cache(s)'

Hope this helps someone!

查看更多
手持菜刀,她持情操
6楼-- · 2019-01-23 01:06

A simple restart of Visual Studio should clear everything up. I had the same issue in VS2013 after upgrading Web API. It was not necessary to delete the .suo.

查看更多
该账号已被封号
7楼-- · 2019-01-23 01:09

Let's check the name of packages in file packages.config. Sometime the name incorrect it occurr

查看更多
登录 后发表回答