diff --git a/src/main.ts b/src/main.ts index 05035ca..a540494 100644 --- a/src/main.ts +++ b/src/main.ts @@ -100,6 +100,9 @@ async function run(): Promise { // set the outputs for the action to the folder path of msbuild core.setOutput('msbuildPath', toolFolderPath) + + // also set MSBUILD environment variable in case a tool needs that variable + core.exportVariable('MSBUILD', toolFolderPath); // add tool path to PATH core.addPath(toolFolderPath)