Set dotnet root for windows

This commit is contained in:
Zachary Eisinger 2020-09-04 15:18:37 -07:00
parent 240b4913cc
commit 7fb465f247
2 changed files with 5 additions and 0 deletions

1
dist/index.js vendored
View File

@ -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

View File

@ -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'));