asp.net mvc - Nuget give this error "ps1 cannot be loaded because running scripts is disabled" -
i have new empty mvc 5 project, , try install nuget packages. when insert in nuget console command :update-package got following asnwer:
file e:\webapp\packages\microsoft.codedom.providers.dotnetcompilerplatform.1.0.0\tools\uninstall.ps1 cannot loaded because running scripts disabled on system. more information, see about_execution_policies @ http://go.microsoft.com/fwlink/?linkid=135170.at line:1 char:3 + & 'e:\webapp\packages\microsoft.codedom.providers.dot ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + categoryinfo : securityerror: (:) [], pssecurityexception + fullyqualifiederrorid : unauthorizedaccess
then start install new packages , got again message:
webapp\packages\modernizr.2.8.3\tools\install.ps1 cannot loaded because running scripts disabled on system
i saw posts related message, not related mvc projects.
my question is:
why messages?
what can fix issue?
this issue, can appear on server application run? scripts not run expected?
i guess specific package trying install needs run powershell script , reason powershell execution disabled on machine. can search google on "how enable powershell" complete guide generaly goes this:
- open powershell command window (just search powershell after pressing windows start button)
- check out current restrictions typing "get-executionpolicy"
- enable powershell typing "set-executionpolicy remotesigned"
this issue not affect server planing install application on.
Comments
Post a Comment