Click here to Skip to main content
14,580,612 members
Rate this:
Please Sign up or sign in to vote.
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.

<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

Rate this:
Please Sign up or sign in to vote.

Solution 1

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

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




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100