mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-26 05:13:04 +07:00
Fix eslint and prettier code formatting
This commit is contained in:
parent
a7a75759e9
commit
72ac9779ce
@ -12,7 +12,8 @@ const ALLOW_PRERELEASE = core.getInput('vs-prerelease') || 'false'
|
|||||||
let MSBUILD_ARCH = core.getInput('msbuild-architecture') || 'x86'
|
let MSBUILD_ARCH = core.getInput('msbuild-architecture') || 'x86'
|
||||||
|
|
||||||
// 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') {
|
if (ALLOW_PRERELEASE === 'true') {
|
||||||
VSWHERE_EXEC += ' -prerelease '
|
VSWHERE_EXEC += ' -prerelease '
|
||||||
}
|
}
|
||||||
@ -77,7 +78,7 @@ async function run(): Promise<void> {
|
|||||||
if (MSBUILD_ARCH === 'x64') {
|
if (MSBUILD_ARCH === 'x64') {
|
||||||
MSBUILD_ARCH = 'amd64'
|
MSBUILD_ARCH = 'amd64'
|
||||||
}
|
}
|
||||||
let toolPath = path.join(
|
const toolPath = path.join(
|
||||||
installationPath,
|
installationPath,
|
||||||
`MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe`
|
`MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe`
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user