mirror of
https://github.com/actions/setup-dotnet.git
synced 2024-11-22 19:41:08 +07:00
Add DOTNET_ROOT (#12)
* Add DOTNET_ROOT * Correct path * DOTNET_ROOT should point at root, not versioned folder
This commit is contained in:
parent
56ad7c6927
commit
1c11308e52
@ -72,6 +72,8 @@ class DotnetCoreInstaller {
|
||||
else {
|
||||
console.log('Using cached tool');
|
||||
}
|
||||
// Need to set this so that .NET Core global tools find the right locations.
|
||||
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
|
||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||
core.addPath(toolPath);
|
||||
});
|
||||
|
@ -58,6 +58,9 @@ export class DotnetCoreInstaller {
|
||||
console.log('Using cached tool');
|
||||
}
|
||||
|
||||
// Need to set this so that .NET Core global tools find the right locations.
|
||||
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
|
||||
|
||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||
core.addPath(toolPath);
|
||||
}
|
||||
@ -171,6 +174,7 @@ export class DotnetCoreInstaller {
|
||||
this.version,
|
||||
this.arch
|
||||
);
|
||||
|
||||
console.log('Successfully installed', this.version);
|
||||
return cachedDir;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user