Skip to content

Commit

Permalink
Fix RepoRoot to always have a directory terminator at the end (#1893)
Browse files Browse the repository at this point in the history
* Make sure RepoRoot ends with a directory terminator.

* Use MSBuild::EnsureTrailingSlash
  • Loading branch information
jkoritzinsky authored and jkotas committed Jan 18, 2020
1 parent f68d2a1 commit c4bddfb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project>
<Project TreatAsLocalProperty="RepoRoot">

<PropertyGroup>
<!--
Expand All @@ -20,7 +20,7 @@

<!-- Set these properties early enough for libraries as they import the Arcade SDK not early enough. -->
<PropertyGroup Condition="'$(SkipImportArcadeSdkFromRoot)' == 'true'">
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
<RepoRoot>$([MSBuild]::EnsureTrailingSlash('$(MSBuildThisFileDirectory)'))</RepoRoot>
<RepositoryEngineeringDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'eng'))</RepositoryEngineeringDir>
<ArtifactsDir>$([MSBuild]::NormalizeDirectory('$(RepoRoot)', 'artifacts'))</ArtifactsDir>
<ArtifactsBinDir>$([MSBuild]::NormalizeDirectory('$(ArtifactsDir)', 'bin'))</ArtifactsBinDir>
Expand Down

0 comments on commit c4bddfb

Please sign in to comment.