VS2015 - The 'NuGetPackage' package did not load correctly

后端 未结 11 1778
孤街浪徒
孤街浪徒 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:24

    Updating Nuget to the latest version seems to have solved the problem.

    1. Tools > Extensions and Updates

    2. Updates > Visual Studio Gallery

    3. Click Update on the Nuget Package Manager option

    0 讨论(0)
  • 2020-12-15 15:25

    Completely removing NuGet via Extensions and Updates, restarting VS then re-installing NuGet via Extensions and Updates solved the issue for me. A full VS reinstall was not necessary.

    0 讨论(0)
  • 2020-12-15 15:25

    Restarting Visual Studio (2017) fixed this for me.

    0 讨论(0)
  • 2020-12-15 15:26

    After a completely clean install of Visual Studio Professional 2015 from the MSDN Website, I ran VS2015 as Administrator, opened up the Package Manager Console from Tools -> NuGet Package Manager... -> Package Manager Console and I received this error:

    "Windows PowerShell updated your execution policy successfully, 
    but the setting is overridden by a policy defined at a more 
    specific scope. Due to the override, your shell will retain its 
    current effective execution policy of Unrestricted. 
    Type "Get-ExecutionPolicy -List" to view your execution policy 
    settings. For more information please see "Get-Help Set-ExecutionPolicy"
    

    By following the above steps to

    1) Use Tools -> Extensions and Updates... to uninstall NuGet Package Manager for Visual Studio 2015.

    2) Restart Visual Studio.

    3) Use Tools -> Extensions and Updates... to re-install NuGet Package Manager for Visual Studio 2015.

    4) Restart Visual Studio.

    Now when I open up the Package Manager Console, Powershell loads correctly and every thing is good. Thanks so much for this!

    0 讨论(0)
  • 2020-12-15 15:26

    Deleting all the files from this folder C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\imf5jbeu.eak seem to have worked for me.

    0 讨论(0)
  • 2020-12-15 15:32

    I had the same problem and solved it with the already mentioned solution but needed more attempts. It's necessary to restart VS completely after uninstalling and installing the NuGetPackage extension and on my system it was not working until I closed my opened solution. Hopefully NuGetPackage extension gets more stable in the near future.

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