mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-22 11:31:07 +07:00
Always use -latest
This commit is contained in:
parent
4917605713
commit
455ec54ae7
@ -11,14 +11,10 @@ const VSWHERE_PATH = core.getInput('vswhere-path')
|
|||||||
const ALLOW_PRERELEASE = core.getInput('vs-prerelease') || 'false'
|
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 '
|
let VSWHERE_EXEC = '-products * -requires Microsoft.Component.MSBuild -property installationPath -latest '
|
||||||
if (ALLOW_PRERELEASE === 'true') {
|
if (ALLOW_PRERELEASE === 'true') {
|
||||||
VSWHERE_EXEC += ' -prerelease '
|
VSWHERE_EXEC += ' -prerelease '
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
VSWHERE_EXEC += ' -latest '
|
|
||||||
}
|
|
||||||
|
|
||||||
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