blocked by software restriction policies?

1

Has anyone ever encountered this message when opening Visual Sdudio ??

  

\ packages \ EntityFramework.5.0.0 \ tools \ init.ps1   can not be loaded because its operation is blocked by software restriction policies, such as those created by using Group Policy.   At line: 1 char: 45   + $ __ pc_args = @ (); $ input |% {$ __ pc_args + = $ _}; & 'D: \ Fontes \ Private Projects \ Vis ...   + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       + CategoryInfo: SecurityError: (:) [], PSSecurityException       + FullyQualifiedErrorId: UnauthorizedAccess

Could you help me solve this?

    
asked by anonymous 09.10.2015 / 20:43

1 answer

0

In the Package Manager Console, type the following:

PM> Set-ExecutionPolicy Unrestricted

There is no problem in reducing the restriction policy of scripts on a development machine.

If it does not work first, try running Visual Studio as an administrator and try again.

In addition, if it's not a design constraint, it's even better to upgrade the Entity Framework. Version 6 does not have this restriction.

    
09.10.2015 / 22:38