Skip to content

Commit f198d98

Browse files
authored
Update to latest tasks schema (#1098)
Update to pwsh on Linux/macOS
1 parent 706b5a5 commit f198d98

File tree

1 file changed

+36
-24
lines changed

1 file changed

+36
-24
lines changed

.vscode/tasks.json

+36-24
Original file line numberDiff line numberDiff line change
@@ -2,58 +2,70 @@
22
"version": "2.0.0",
33

44
"windows": {
5-
"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe",
6-
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
5+
"options": {
6+
"shell": {
7+
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
8+
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass", "-Command" ]
9+
}
10+
}
711
},
812
"linux": {
9-
"command": "/usr/bin/powershell",
10-
"args": [ "-NoProfile", "-Command" ]
13+
"options": {
14+
"shell": {
15+
"executable": "/usr/bin/pwsh",
16+
"args": [ "-NoProfile", "-Command" ]
17+
}
18+
}
1119
},
1220
"osx": {
13-
"command": "/usr/local/bin/powershell",
14-
"args": [ "-NoProfile", "-Command" ]
21+
"options": {
22+
"shell": {
23+
"executable": "/usr/local/bin/pwsh",
24+
"args": [ "-NoProfile", "-Command" ]
25+
}
26+
}
1527
},
1628

1729
"tasks": [
1830
{
19-
"taskName": "Install",
20-
"suppressTaskName": true,
21-
"args": [ "Invoke-Build", "Restore" ],
31+
"label": "Install",
32+
"type": "shell",
33+
"command": "Invoke-Build Restore",
2234
"problemMatcher": []
2335
},
2436
{
25-
"taskName": "CleanAll",
26-
"suppressTaskName": true,
27-
"args": [ "Invoke-Build", "CleanAll" ],
37+
"label": "CleanAll",
38+
"type": "shell",
39+
"command": "Invoke-Build CleanAll",
2840
"problemMatcher": []
2941
},
3042
{
31-
"taskName": "Clean",
32-
"suppressTaskName": true,
33-
"args": [ "Invoke-Build", "Clean" ],
43+
"label": "Clean",
44+
"type": "shell",
45+
"command": "Invoke-Build Clean",
3446
"problemMatcher": []
3547
},
3648
{
37-
"taskName": "BuildAll",
38-
"suppressTaskName": true,
39-
"args": [ "Invoke-Build", "BuildAll" ],
49+
"label": "BuildAll",
50+
"type": "shell",
51+
"command": "Invoke-Build BuildAll",
4052
"group": {
4153
"kind": "build",
4254
"isDefault": true
4355
},
4456
"problemMatcher": []
4557
},
4658
{
47-
"taskName": "Build",
48-
"suppressTaskName": true,
49-
"args": [ "Invoke-Build", "Build" ],
59+
"label": "Build",
60+
"type": "shell",
61+
"command": "Invoke-Build Build",
5062
"group": "build",
5163
"problemMatcher": []
5264
},
5365
{
54-
"taskName": "Test",
55-
"suppressTaskName": true,
56-
"args": [ "Invoke-Build", "Test" ],
66+
"label": "Test",
67+
"type": "shell",
68+
"command": "Invoke-Build Test",
5769
"group": {
5870
"kind": "test",
5971
"isDefault": true

0 commit comments

Comments
 (0)