Change DOTNET_ROOT for windows
This commit is contained in:
parent
ef8597a45d
commit
7de6b26c38
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue