Roslyn Setup - Powershell Scripts -
i've been trying install rosyln source code github , following build setup instructions.
the first instruction run restore.cmd - produces following error message:
file c:\code\roslyn-master\build\scripts\build.ps1 cannot loaded. file c:\code\roslyn-master\build\scripts\build.ps1 not digitally signed. cannot run script on current system. more information running scripts , setting execution policy, see about_execution_policies @ http://go.microsoft.com/fwlink/?linkid=135170. + categoryinfo : securityerror: (:) [], parentcontainserrorrecordexception + fullyqualifiederrorid : unauthorizedaccess
i have used set-executionpolicy disable checking:
ps c:\code\roslyn-master> get-executionpolicy -list
scope executionpolicy ----- --------------- machinepolicy undefined userpolicy undefined process undefined currentuser undefined localmachine undefined
however, still receiving same error. i'm running visual studio 2017 community on windows 10 pro machine.
thanks in advance
jim
the restore.cmd file contained following command:
powershell -noprofile -executionpolicy remotesigned -file "%~dp0\build\scripts\build.ps1" -restore %*
it didn't matter set powershell policy - file going override it. when removed execution policy clause, file ran fine.
Comments
Post a Comment