Commit ed9c2ab
authored
[Java.Interop-MonoAndroid] Set Version after Directory.Build.props (#965)
Context: https://discord.com/channels/732297728826277939/732297837953679412/955531846865784882
Context: cbd9666
When trying to update some NuGet packages which were using
Visual Studio 17.3 / Xamarin.Android 12.3.0 preview bits, we
encountered an "oddity": the generated assembly was referencing
Java.Interop.dll, Version=0.2.0.6 (?!). This was unexpected, as we
wanted Java.Interop.dll to have Version=0.1.0.0; see also 2d5431f.
We are setting `$(Version)`=0.1.0.0 in
`Java.Interop-MonoAndroid.csproj`, which is what we intended.
However, immediately after setting `$(Version)` we do:
<Import Project="..\..\Directory.Build.props" />
which *overrides* `$(Version)`, setting it to `$(JIUtilityVersion)`;
see commit cbd9666. This was *unintended*.
Update `Java.Interop-MonoAndroid.csproj` so that `$(Version)` is set
*after* `<Import/>`ing `Directory.Build.props`, so that the
`$(Version)` override is actually *used*.
This should cause Java.Interop.dll within Xamarin.Android to have
Version=0.1.0.0.1 parent 05bfece commit ed9c2ab
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
0 commit comments