add .dotnet/tools to path

This commit is contained in:
Joseph Petersen 2019-12-21 07:30:05 +01:00
parent b7821147f5
commit f50fe00b26
No known key found for this signature in database
GPG Key ID: F238741D299989A8
2 changed files with 9 additions and 0 deletions

View File

@ -75,6 +75,10 @@ class DotnetCoreInstaller {
core.exportVariable('DOTNET_ROOT', toolPath);
// Prepend the tools path. instructs the agent to prepend for future tasks
core.addPath(toolPath);
// Prepend the dotnet global tools path
const homedir = os.homedir();
const dotnetToolsPath = path.join(homedir, '.dotnet/tools');
core.addPath(dotnetToolsPath);
});
}
getLocalTool() {

View File

@ -62,6 +62,11 @@ export class DotnetCoreInstaller {
// Prepend the tools path. instructs the agent to prepend for future tasks
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 {