Last post Mar 29, 2017 10:15 AM by Zhi Lv - MSFT
Mar 28, 2017 08:49 AM|Yeoman|LINK
when I try to create a new project using Web Forms in MSVC 2013, I get this error:
I have searched the net and found some solutions like
Set-ExecutionPolicy -Scope CurrentUser Unrestricted
However, this did not solve the problem, but now I see messages like this in the Package Manager Console:
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".
It's frustrating that it simply stopped working without having obviously changed anything.
Can you help?
Mar 29, 2017 08:26 AM|Yeoman|LINK
I have installed the Visual Studio Professional 2015 on a different and fresh machine and I got the same error message!
So there must be a general issue...
Mar 29, 2017 10:15 AM|Zhi Lv - MSFT|LINK
As for this issue, I suggest you check the following article:
you can close all instance of Visual Studio currently running and then open up
Windows Powershell in administrator mode and fire following command:
Type Yes to confirm - change in execution policy.
Open up the visual studio project again and keep the Package Manager Console open, then try to install / update the NuGet package again.
If still not working, I suggest you could try to re-install the VS.