Skip to content

Commit 68bc64b

Browse files
committed
Update tasks.json files for 64-bit VS Code
This change modifies the path used for PowerShell on Windows due to the fact that 64-bit VS Code has been released (and is now being promoted as the primary build). We're only pointing to the System32 path for now because VS Code doesn't provide a way to specify a different path in the 32-bit build.
1 parent 65e1dec commit 68bc64b

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.vscode/tasks.json

+18-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"version": "2.0.0",
33

44
"windows": {
5-
"command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
5+
"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe",
66
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
77
},
88
"linux": {
@@ -20,28 +20,40 @@
2020
{
2121
"taskName": "Install",
2222
"suppressTaskName": true,
23-
"args": [ "Invoke-Build Restore" ]
23+
"args": [
24+
"Invoke-Build Restore"
25+
]
2426
},
2527
{
2628
"taskName": "CleanAll",
2729
"suppressTaskName": true,
28-
"args": [ "Invoke-Build CleanAll" ]
30+
"args": [
31+
"Invoke-Build CleanAll"
32+
]
2933
},
3034
{
3135
"taskName": "Clean",
3236
"suppressTaskName": true,
33-
"args": [ "Invoke-Build Clean" ]
37+
"args": [
38+
"Invoke-Build Clean"
39+
]
3440
},
3541
{
3642
"taskName": "BuildAll",
3743
"suppressTaskName": true,
3844
"isBuildCommand": true,
39-
"args": [ "Invoke-Build BuildAll" ]
45+
"args": [
46+
"Invoke-Build BuildAll"
47+
],
48+
"problemMatcher": []
4049
},
4150
{
4251
"taskName": "Build",
4352
"suppressTaskName": true,
44-
"args": [ "Invoke-Build Build" ]
53+
"args": [
54+
"Invoke-Build Build"
55+
],
56+
"problemMatcher": []
4557
}
4658
]
4759
}

examples/.vscode/tasks.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434
// Start PowerShell
3535
"windows": {
36-
"command": "${env:windir}\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
36+
"command": "${env:windir}/System32/WindowsPowerShell/v1.0/powershell.exe",
3737
"args": [ "-NoProfile", "-ExecutionPolicy", "Bypass" ]
3838
},
3939
"linux": {

0 commit comments

Comments
 (0)