Skip to content

Commit 323957b

Browse files
win: add an arch check to VS 2019 (#3025)
1 parent 93186f1 commit 323957b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

lib/find-visualstudio.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,11 @@ class VisualStudioFinder {
363363
return path.join(info.path, 'MSBuild', '15.0', 'Bin', 'MSBuild.exe')
364364
}
365365
if (versionYear === 2019) {
366-
return msbuildPath
366+
if (process.arch === 'arm64' && this.msBuildPathExists(msbuildPathArm64)) {
367+
return msbuildPathArm64
368+
} else {
369+
return msbuildPath
370+
}
367371
}
368372
}
369373
/**

test/test-find-visualstudio.js

-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@ class TestVisualStudioFinder extends VisualStudioFinder {
2121
}
2222
}
2323

24-
const shouldSkip = process.platform !== 'win32'
25-
2624
describe('find-visualstudio', function () {
27-
if (shouldSkip) {
28-
return
29-
}
30-
3125
this.beforeAll(function () {
3226
// Condition to skip the test suite
3327
if (process.env.SystemRoot === undefined) {

0 commit comments

Comments
 (0)