Skip to content

Commit e177ed4

Browse files
author
Bret Johnson
committed
Allow targets override
Allow a .targets.override file in the parent directory to customize targets settings for Directory.build.targets. This is the same change made for androidtools here https://github.com/xamarin/androidtools/pull/307, applied to xamarin-android-tools.
1 parent a5194e9 commit e177ed4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Directory.Build.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
<InformationalVersion>$(Version); git-rev-head:$(GitCommit); git-branch:$(GitBranch)</InformationalVersion>
1414
</PropertyGroup>
1515
</Target>
16+
17+
<Import
18+
Project="$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.targets"
19+
Condition=" Exists('$([System.IO.Path]::GetDirectoryName($(MSBuildThisFileDirectory))).override.targets') "
20+
/>
1621
</Project>

0 commit comments

Comments
 (0)