This commit is contained in:
Heath Stewart 2020-04-04 11:50:17 -07:00
parent f486e795bf
commit f6890ff843
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -1910,12 +1910,12 @@ const VS_VERSION = core.getInput('vs-version') || 'latest';
const VSWHERE_PATH = core.getInput('vswhere-path') ||
path.join(process.env['ProgramFiles(x86)'], 'Microsoft Visual Studio\\Installer');
// if a specific version of VS is requested
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath';
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath ';
if (VS_VERSION === 'latest') {
VSWHERE_EXEC += '-latest ';
}
else {
VSWHERE_EXEC += `-version ${VS_VERSION} `;
VSWHERE_EXEC += `-version "${VS_VERSION}" `;
}
core.debug(`Execution arguments: ${VSWHERE_EXEC}`);
function run() {

View File

@ -16,11 +16,11 @@ const VSWHERE_PATH =
// if a specific version of VS is requested
let VSWHERE_EXEC =
'-products * -requires Microsoft.Component.MSBuild -property installationPath'
'-products * -requires Microsoft.Component.MSBuild -property installationPath '
if (VS_VERSION === 'latest') {
VSWHERE_EXEC += '-latest '
} else {
VSWHERE_EXEC += `-version ${VS_VERSION} `
VSWHERE_EXEC += `-version "${VS_VERSION}" `
}
core.debug(`Execution arguments: ${VSWHERE_EXEC}`)