Skip to content

Commit bba6f49

Browse files
authored
Merge pull request #278 from grokky1/patch-1
Changed scanning to start in parent directory
2 parents c0f0093 + 415e1f0 commit bba6f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/msbuild/customize-your-build.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ It might be desirable to have common properties for all projects `(1)`, common p
9292

9393
For msbuild to correctly merge the "inner" files (`2-src` and `2-test`) with the "outer" file (`1`), you must take into account that once msbuild finds a `Directory.Build.props` file, it stops further scanning. To continue scanning, and merge into the outer file, place this into both inner files:
9494

95-
`<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props'))" />`
95+
`<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />`
9696

9797
A summary of msbuild's general approach is as follows:
9898

0 commit comments

Comments
 (0)