Skip to content

Commit

Permalink
Include version/architecture in DOTNET_ROOT
Browse files Browse the repository at this point in the history
Fixes #29
  • Loading branch information
Robert Jeppesen committed Sep 11, 2019
1 parent a2db702 commit a668ade
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 a668ade

Please sign in to comment.