Add DOTNET_ROOT

This commit is contained in:
Danny McCormick 2019-08-08 15:07:18 -04:00
parent d6004ce18b
commit 117ebc92cc
2 changed files with 5 additions and 0 deletions

View File

@ -163,6 +163,7 @@ class DotnetCoreInstaller {
// cache tool // cache tool
console.log('Caching tool'); console.log('Caching tool');
let cachedDir = yield tc.cacheDir(extPath, this.cachedToolName, this.version, this.arch); let cachedDir = yield tc.cacheDir(extPath, this.cachedToolName, this.version, this.arch);
core.exportVariable('DOTNET_ROOT', cachedDir);
console.log('Successfully installed', this.version); console.log('Successfully installed', this.version);
return cachedDir; return cachedDir;
}); });

View File

@ -171,6 +171,10 @@ export class DotnetCoreInstaller {
this.version, this.version,
this.arch this.arch
); );
// Need to set this so that .NET Core global tools find the right locations.
core.exportVariable('DOTNET_ROOT', cachedDir);
console.log('Successfully installed', this.version); console.log('Successfully installed', this.version);
return cachedDir; return cachedDir;
} }