Skip to content

Commit

Permalink
Update to latest tasks schema (PowerShell#1098)
Browse files Browse the repository at this point in the history
Update to pwsh on Linux/macOS
  • Loading branch information
rkeithhill committed Nov 11, 2017
1 parent 706b5a5 commit f198d98
Showing 1 changed file with 36 additions and 24 deletions.
60 changes: 36 additions & 24 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,58 +2,70 @@
"version": "2.0.0",

"windows": {
"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe",
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
"options": {
"shell": {
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
}
}
},
"linux": {
"command": "/usr/bin/powershell",
"args": [ "-NoProfile", "-Command" ]
"options": {
"shell": {
"executable": "/usr/bin/pwsh",
"args": [ "-NoProfile", "-Command" ]
}
}
},
"osx": {
"command": "/usr/local/bin/powershell",
"args": [ "-NoProfile", "-Command" ]
"options": {
"shell": {
"executable": "/usr/local/bin/pwsh",
"args": [ "-NoProfile", "-Command" ]
}
}
},

"tasks": [
{
"taskName": "Install",
"suppressTaskName": true,
"args": [ "Invoke-Build", "Restore" ],
"label": "Install",
"type": "shell",
"command": "Invoke-Build Restore",
"problemMatcher": []
},
{
"taskName": "CleanAll",
"suppressTaskName": true,
"args": [ "Invoke-Build", "CleanAll" ],
"label": "CleanAll",
"type": "shell",
"command": "Invoke-Build CleanAll",
"problemMatcher": []
},
{
"taskName": "Clean",
"suppressTaskName": true,
"args": [ "Invoke-Build", "Clean" ],
"label": "Clean",
"type": "shell",
"command": "Invoke-Build Clean",
"problemMatcher": []
},
{
"taskName": "BuildAll",
"suppressTaskName": true,
"args": [ "Invoke-Build", "BuildAll" ],
"label": "BuildAll",
"type": "shell",
"command": "Invoke-Build BuildAll",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"taskName": "Build",
"suppressTaskName": true,
"args": [ "Invoke-Build", "Build" ],
"label": "Build",
"type": "shell",
"command": "Invoke-Build Build",
"group": "build",
"problemMatcher": []
},
{
"taskName": "Test",
"suppressTaskName": true,
"args": [ "Invoke-Build", "Test" ],
"label": "Test",
"type": "shell",
"command": "Invoke-Build Test",
"group": {
"kind": "test",
"isDefault": true
Expand Down

0 comments on commit f198d98

Please sign in to comment.