mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-20 07:35:10 +00:00
add .dotnet/tools to path
This commit is contained in:
parent
b7821147f5
commit
f50fe00b26
@ -75,6 +75,10 @@ class DotnetCoreInstaller {
|
|||||||
core.exportVariable('DOTNET_ROOT', toolPath);
|
core.exportVariable('DOTNET_ROOT', toolPath);
|
||||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
core.addPath(toolPath);
|
core.addPath(toolPath);
|
||||||
|
// Prepend the dotnet global tools path
|
||||||
|
const homedir = os.homedir();
|
||||||
|
const dotnetToolsPath = path.join(homedir, '.dotnet/tools');
|
||||||
|
core.addPath(dotnetToolsPath);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
getLocalTool() {
|
getLocalTool() {
|
||||||
|
@ -62,6 +62,11 @@ export class DotnetCoreInstaller {
|
|||||||
|
|
||||||
// Prepend the tools path. instructs the agent to prepend for future tasks
|
// Prepend the tools path. instructs the agent to prepend for future tasks
|
||||||
core.addPath(toolPath);
|
core.addPath(toolPath);
|
||||||
|
|
||||||
|
// Prepend the dotnet global tools path
|
||||||
|
const homedir = os.homedir();
|
||||||
|
const dotnetToolsPath = path.join(homedir, '.dotnet/tools');
|
||||||
|
core.addPath(dotnetToolsPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
private getLocalTool(): string {
|
private getLocalTool(): string {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user