NuGet Package restore failed for project Miscellaneous Files: Value cannot be null or an empty string. Parameter name: root. 0 0

前端 未结 16 2057
傲寒
傲寒 2020-12-15 02:03

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

相关标签:
16条回答
  • 2020-12-15 02:43

    I got this error by accidentally renaming one of the namespace id attributes inside packages.config file to something else. I was able to track this down by comparing checked in version of packages.config, with my local one. After I corrected the problem, all I had to do is close the packages.config file, rebuild, and the problem was gone.

    0 讨论(0)
  • 2020-12-15 02:44

    I fixed this by enabling auto restore on nuget packages in the solution

    0 讨论(0)
  • 2020-12-15 02:45

    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!

    0 讨论(0)
  • 2020-12-15 02:47

    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.

    0 讨论(0)
  • 2020-12-15 02:48

    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.

    0 讨论(0)
  • 2020-12-15 02:48

    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.

    0 讨论(0)
提交回复
热议问题