Skip to content

Commit bb95ce7

Browse files
author
Zachary Eisinger
authored
Merge pull request #34 from rojepp/fix_dotnet_root
Include version/architecture in DOTNET_ROOT Fixes #40 and #29.
2 parents cc372bb + a668ade commit bb95ce7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/installer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class DotnetCoreInstaller {
7373
console.log('Using cached tool');
7474
}
7575
// Need to set this so that .NET Core global tools find the right locations.
76-
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
76+
core.exportVariable('DOTNET_ROOT', toolPath);
7777
// Prepend the tools path. instructs the agent to prepend for future tasks
7878
core.addPath(toolPath);
7979
});

src/installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class DotnetCoreInstaller {
5959
}
6060

6161
// Need to set this so that .NET Core global tools find the right locations.
62-
core.exportVariable('DOTNET_ROOT', path.join(toolPath, '../..'));
62+
core.exportVariable('DOTNET_ROOT', toolPath);
6363

6464
// Prepend the tools path. instructs the agent to prepend for future tasks
6565
core.addPath(toolPath);

0 commit comments

Comments
 (0)