VS2015 - The 'NuGetPackage' package did not load correctly

后端 未结 11 1788
孤街浪徒
孤街浪徒 2020-12-15 14:59

Just opened up VS 2015 Enterprise RTM, opened up an existing working project, getting the following error:


Microsoft Visual Studio

11条回答
  •  北海茫月
    2020-12-15 15:40

    Bear in mind

    A reinstall of the NuGet Package Manager does NOT seem to remove the existing NuGet.Config file held in c:\users\name\AppData\Roaming\NuGet!

    Mine had a missing 'packageSources' section (why, I don't know) but since this file was not recreated NuGet still didn't work!

    So either manually enter this section or remove this config file, then reinstall NuGet through the Extensions and Updates which will recreate a brand new one!

提交回复
热议问题