Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi team

I have an issue almost 2 weeks and want to share this problem perhaps i could get an insight of it. The issue is when i try to launch my IDE visual studio either as Admin nor normal. Nu-get console get this weird exception and dont know if its an administration issue or software related problem like virus.

C#
<pre>& : File C:\Users\gcobanim\source\repos\eNtsaRegistrationTraining\packages\Microsoft.EntityFrameworkCore.Tools.3.1.3\tools\init.ps1 cannot be loaded because its operation
is blocked by software restriction policies, such as those created by using Group Policy.


What I have tried:

Update-Database;
Install-Microsoft.EntityFrameworkCore.Tools;
-Failed to run as console states its already running.
Posted
Updated 2-Jun-20 2:42am

1 solution

Maybe a PowerShell execution policy issue. Try to issue the following command on a PowerShell window:
PowerShell
Set-ExecutionPolicy Unrestricted -Scope CurrentUser
You might have to logout/login to see the change applied to your user session.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900