Find any product with MSBuild component

Fixes #7
This commit is contained in:
Heath Stewart committed 2020-04-21 15:38:49 -07:00
1 parent f05df80b32
commit bb70c6a023
5 files changed
+9 -10

No files matched your search

+2 -3
View File
@@ -14,14 +14,13 @@ const VSWHERE_PATH =
)
// if a specific version of VS is requested
let VSWHERE_EXEC = ''
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild '
if (VS_VERSION === 'latest') {
VSWHERE_EXEC += '-latest '
} else {
VSWHERE_EXEC += `-version ${VS_VERSION} `
}
VSWHERE_EXEC +=
'-requires Microsoft.Component.MSBuild -find MSBuild\\**\\Bin\\MSBuild.exe'
VSWHERE_EXEC += '-find MSBuild\\**\\Bin\\MSBuild.exe'
core.debug(`Execution arguments: ${VSWHERE_EXEC}`)