mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
Set dotnet root for windows
This commit is contained in:
parent
240b4913cc
commit
7fb465f247
1
dist/index.js
vendored
1
dist/index.js
vendored
@ -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
|
||||
|
@ -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'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user