locked
Error in Package Manager Console For Migration RRS feed

  • Question

  • User-1088903058 posted

    Hi,
    when i want to add-migration the PMC show this error to me and the intellisense not found and not contains the add-migration

    of course this error just show in .net core 2.1 project
    what's problem ? 

    Error
    : File C:\Users\Itisa\.nuget\packages\microsoft.entityframeworkcore.tools\2.1.0\tools\init.ps1 cannot be loaded because its operation is
    blocked by software restriction policies, such as those created by using Group Policy.
    At line:1 char:45
    + ... rgs+=$_}; & 'C:\Users\Itisa\.nuget\packages\microsoft.entityframework ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : SecurityError: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    & : File C:\Users\Itisa\.nuget\packages\microsoft.entityframeworkcore.tools\2.1.1\tools\init.ps1 cannot be loaded because its operation is
    blocked by software restriction policies, such as those created by using Group Policy.

    Wednesday, February 5, 2020 8:16 AM

All replies