diff --git a/dist/index.js b/dist/index.js index 089c091..dfd3eee 100644 --- a/dist/index.js +++ b/dist/index.js @@ -16779,6 +16779,7 @@ class DotnetCoreInstaller { if (IS_WINDOWS) { // This is the default set in install-dotnet.ps1 core.addPath(path.join(process.env['LocalAppData'] + '', 'Microsoft', 'dotnet')); + core.exportVariable('DOTNET_ROOT', path.join(process.env['LocalAppData'] + '', 'Microsoft', 'dotnet')); } else { // This is the default set in install-dotnet.sh diff --git a/src/installer.ts b/src/installer.ts index a573604..66032fc 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -169,6 +169,10 @@ export class DotnetCoreInstaller { core.addPath( path.join(process.env['LocalAppData'] + '', 'Microsoft', 'dotnet') ); + core.exportVariable( + 'DOTNET_ROOT', + path.join(process.env['LocalAppData'] + '', 'Microsoft', 'dotnet') + ); } else { // This is the default set in install-dotnet.sh core.addPath(path.join(process.env['HOME'] + '', '.dotnet'));