mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-10 05:51:07 +07:00
Merge branch 'Clancey-patch-1'
This commit is contained in:
commit
6387a9728e
@ -8,9 +8,14 @@ import {ExecOptions} from '@actions/exec/lib/interfaces'
|
|||||||
const IS_WINDOWS = process.platform === 'win32'
|
const IS_WINDOWS = process.platform === 'win32'
|
||||||
const VS_VERSION = core.getInput('vs-version') || 'latest'
|
const VS_VERSION = core.getInput('vs-version') || 'latest'
|
||||||
const VSWHERE_PATH = core.getInput('vswhere-path')
|
const VSWHERE_PATH = core.getInput('vswhere-path')
|
||||||
|
const ALLOW_PRERELEASE = core.getInput('vs-prerelease') || 'false'
|
||||||
|
|
||||||
// if a specific version of VS is requested
|
// if a specific version of VS is requested
|
||||||
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath -latest '
|
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath -latest '
|
||||||
|
if (ALLOW_PRERELEASE === 'true') {
|
||||||
|
VSWHERE_EXEC += ' -prerelease '
|
||||||
|
}
|
||||||
|
|
||||||
if (VS_VERSION !== 'latest') {
|
if (VS_VERSION !== 'latest') {
|
||||||
VSWHERE_EXEC += `-version "${VS_VERSION}" `
|
VSWHERE_EXEC += `-version "${VS_VERSION}" `
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user