ps1 cannot be loaded because running scripts is disabled on this system

后端 未结 9 828
执笔经年
执笔经年 2020-12-12 11:55

I try to run powershell script from c#.

First i set the ExecutionPolicy to Unrestricted and the script is running now from

9条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 12:35

    If you are using visual studio code:

    1. Open terminal
    2. Run the command: Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
    3. Then run the command protractor conf.js

    This is related to protractor test script execution related and I faced the same issue and it was resolved like this.

提交回复
热议问题