mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2026-10-24 07:45:08 +07:00
Export MSBUILD env variable
This commit is contained in:
1 parent
45346b5e09
commit
e82103acef
1 file changed
+3
@@ -101,6 +101,9 @@ async function run(): Promise<void> {
|
|||||||
// set the outputs for the action to the folder path of msbuild
|
// set the outputs for the action to the folder path of msbuild
|
||||||
core.setOutput('msbuildPath', toolFolderPath)
|
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
|
// add tool path to PATH
|
||||||
core.addPath(toolFolderPath)
|
core.addPath(toolFolderPath)
|
||||||
core.debug(`Tool path added to PATH: ${toolFolderPath}`)
|
core.debug(`Tool path added to PATH: ${toolFolderPath}`)
|
||||||
|
|||||||
Reference in new issue
Block a user