mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 14:45:09 +00:00
Add DOTNET_ROOT
This commit is contained in:
parent
d6004ce18b
commit
117ebc92cc
@ -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;
|
||||||
});
|
});
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user