Change DOTNET_ROOT for windows

This commit is contained in:
IvanZosimov 2022-08-18 10:43:34 +02:00
parent ef8597a45d
commit 7de6b26c38
2 changed files with 2 additions and 6 deletions

3
dist/index.js vendored
View File

@ -347,8 +347,7 @@ class DotnetCoreInstaller {
else {
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'));
core.exportVariable('DOTNET_ROOT', "C:\Program Files\dotnet");
}
else {
// This is the default set in install-dotnet.sh

View File

@ -204,12 +204,9 @@ export class DotnetCoreInstaller {
} else {
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')
"C:\Program Files\dotnet"
);
} else {
// This is the default set in install-dotnet.sh