Commit 061bcc2
Bret Johnson
[build] Import "parent directory.override.targets" (#135)
Context: ff73f92
Context: https://github.com/xamarin/XamarinVS/pull/12550
The XamarinVS team would like to *not* use `GitInfo` to set the
`$(Version)` MSBuild property (commit ff73f92), and would like to
instead version *all* of their dependencies with the same version.
Support this behavior by by updating `Directory.Build.targets` to
import "parent directory.override.targets", a'la
[xamarin/java.interop@8898bc][0] and [xamarin/java.interop@9a878f][1].
For example, if `xamarin-android-tools` is checked out into:
external/xamarin-android-tools
then we'll import `external/xamarin-android-tools.override.targets`
from `Directory.Build.targets`.
The `<Import/>` of the parent-directory `.targets` file *must* be
*last* within `Directory.Build.targets`, so that it can override any
targets in our default `Directory.Build.targets`, e.g. the
`SetVersion` target.
[0]: dotnet/java-interop@8898bc1
[1]: dotnet/java-interop@9a878f21 parent a5194e9 commit 061bcc2
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
16 | 21 | | |
0 commit comments