Skip to content

Commit

Permalink
Merge pull request #34 from rojepp/fix_dotnet_root
Browse files Browse the repository at this point in the history
Include version/architecture in DOTNET_ROOT
Fixes #40 and #29.
  • Loading branch information
Zachary Eisinger authored and GitHub committed Oct 18, 2019
2 parents cc372bb + a668ade commit bb95ce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ 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, '../..'));
core.exportVariable('DOTNET_ROOT', toolPath);
// Prepend the tools path. instructs the agent to prepend for future tasks
core.addPath(toolPath);
});
Expand Down
2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class DotnetCoreInstaller {
}

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

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

0 comments on commit bb95ce7

Please sign in to comment.