diff --git a/dist/index.js b/dist/index.js index ddbe47d..2b30209 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1703,7 +1703,7 @@ function run() { core.debug(`Found installation path: ${installationPath}`); // x64 and arm64 only exist in one possible location, so no fallback probing if (MSBUILD_ARCH === 'x64' || MSBUILD_ARCH === 'arm64') { - let toolPath = path.join(installationPath, 'MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe'); + let toolPath = path.join(installationPath, `MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe`); core.debug(`Checking for path: ${toolPath}`); if (!fs.existsSync(toolPath)) { return; diff --git a/src/main.ts b/src/main.ts index 8237e14..5668bba 100644 --- a/src/main.ts +++ b/src/main.ts @@ -75,7 +75,7 @@ async function run(): Promise { if (MSBUILD_ARCH === 'x64' || MSBUILD_ARCH === 'arm64') { let toolPath = path.join( installationPath, - 'MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe' + `MSBuild\\Current\\Bin\\${MSBUILD_ARCH}\\MSBuild.exe` ) core.debug(`Checking for path: ${toolPath}`) if (!fs.existsSync(toolPath)) {