Add DOTNET_ROOT (#12)

* Add DOTNET_ROOT

* Correct path

* DOTNET_ROOT should point at root, not versioned folder
This commit is contained in:
Danny McCormick 2019-08-23 10:38:29 -04:00 committed by GitHub
parent 56ad7c6927
commit 1c11308e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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);
});

View File

@ -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;
}