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 authored and GitHub committed 2019-08-23 10:38:29 -04:00
1 parent 56ad7c6927
commit 1c11308e52
2 files changed
+6

No files matched your search

+2
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);
});