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:46

Not an exact answer, but best I can tell, NuGet ver. 2.8 is not available yet. I have been dealing with the same issue for sometime now (2 months). I was still able to build my solution successfully even with that error by performing the build against the main project. I am really hoping to get this issue resolved because it is a serious eyesore while working.

查看更多
够拽才男人
3楼-- · 2019-01-23 00:48

In Visual Studio 2015:

Go to Options->NuGet Package Manager-> Package Sources, make sure "Microsoft and .Net" is checked in the Machine-wide package list.

查看更多
一纸荒年 Trace。
4楼-- · 2019-01-23 00:50

Had the same issue with VS2013 today. After running an update on installed packages (tools -> extensions and updates) (which included nuget), and installing some updates for VS2013 (windows update had some), it has gone away.

So basically, check for those updates, update, and it might solve the issue.

查看更多
ゆ 、 Hurt°
5楼-- · 2019-01-23 00:52

I have VS 2013. According to the extensions manager, nuget was up to date.

Ran a manual install from the vsix site: http://visualstudiogallery.msdn.microsoft.com/4ec1526c-4a8c-4a84-b702-b21a8f5293ca

... fixed the issue.

查看更多
爷、活的狠高调
6楼-- · 2019-01-23 00:54

I fixed this by deleting the visual studio solution user options file (.suo) and then restarting VS.

UPDATE: For VS 2017, you need to delete a hidden folder named .vs located in solution directory (Thanks @Tien Dinh!)

查看更多
你好瞎i
7楼-- · 2019-01-23 00:58

It did not work for me. I had to go to tools, extension manager... Uninstall NuGet Restart Visual Studio 2010 Download NuGet Reinstall it. Restart Visual Studio. Fixed it all!

查看更多
登录 后发表回答