Nuget crash in visual studio 2015

后端 未结 4 892
慢半拍i
慢半拍i 2020-12-04 22:24

Package manager console crash in visual studio 2015 enterprise just after start with error:

Windows PowerShell updated your execution policy successfu

4条回答
  •  醉话见心
    2020-12-04 23:09

    I had the same issue and found solution that worked for me: set execution policy to "Undefined" in all scopes (Remove registry key for Machine and User scopes if they are set by domain policy) and then restart VS and open Package Manager Console.

    Edit: path to key I deleted:

    HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell

    Key: ExecutionPolicy

    This command line can be used to automate the process (run as admin), until issue is fixed:

    reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\PowerShell /v ExecutionPolicy /f
    

提交回复
热议问题