VS2015 - The 'NuGetPackage' package did not load correctly

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

提交回复
热议问题