Skip to content

Commit

Permalink
Use common .tools dir for global tools (dotnet#36597)
Browse files Browse the repository at this point in the history
* Use common .tools dir for global tools
  • Loading branch information
ViktorHofer authored Apr 9, 2019
1 parent 02d4a83 commit b181583
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ syntax: glob
### VisualStudio ###

# Tool Runtime Dir
/[Tt]ools/
.dotnet/
.packages/
.tools/

# User-specific files
*.suo
Expand Down
3 changes: 2 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@
<NetStandardRefPath>$(RefRootPath)netstandard/</NetStandardRefPath>
<NetStandard21RefPath>$(RefRootPath)netstandard2.1/</NetStandard21RefPath>
<NetFxRefPath>$(RefRootPath)netfx/</NetFxRefPath>
<GlobalToolsDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'tools'))</GlobalToolsDir>
<!-- Keep in sync with property in eng\Tools.props. -->
<GlobalToolsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', '.tools', 'globaltools'))</GlobalToolsDir>
<IbcOptimizationDataDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'ibc'))</IbcOptimizationDataDir>
<ILAsmToolPath>$([MSBuild]::NormalizeDirectory('$(ArtifactsToolsetDir)', 'ilasm'))</ILAsmToolPath>
<ILLinkDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsToolsetDir)', 'ILLink'))</ILLinkDir>
Expand Down
3 changes: 2 additions & 1 deletion eng/Tools.props
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
<Target Name="InitGlobalTools" Condition="'@(RepoTool)' != ''" AfterTargets="Restore">

<PropertyGroup>
<GlobalToolsDir>$(ArtifactsDir)tools</GlobalToolsDir>
<!-- Keep in sync with property in RepoRoot\Directory.Build.props. -->
<GlobalToolsDir>$([MSBuild]::NormalizePath('$(RepoRoot)', '.tools', 'globaltools'))</GlobalToolsDir>
</PropertyGroup>

<!-- List all global tools and save the output. -->
Expand Down

0 comments on commit b181583

Please sign in to comment.