Skip to content

Commit

Permalink
tooling(vscode): Fix the Windows ps1 command execution
Browse files Browse the repository at this point in the history
Windows restricts PS scripts by default. This seems to open it up.
  • Loading branch information
kf6kjg committed Jun 1, 2021
1 parent 31ae018 commit 0f98b1b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
"command": "./build.sh"
},
"windows": {
"command": "./build.ps1"
"command": "powershell",
"args": [
"-ExecutionPolicy",
"Unrestricted",
"-NoProfile",
"-File",
"./build.ps1"
], // The ps1 executes, but the system doesn't know where nuget or msbuild are located.
},
"args": [
"/property:GenerateFullPaths=true",
Expand Down

0 comments on commit 0f98b1b

Please sign in to comment.