Commit 4a3cb4d
committed
[Xamarin.Android.Build.Tasks] PackageReference and AndroidUseLatestPlatformSdk do not work together
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=59534
When using `PackageReference` with our system it run before
`_SetLatestTargetFrameworkVersion`. As a result it always
uses a `$(TargetFrameworkVersion)` of v2.3 or what ever the
user defined in the project manually.
So we need to make sure that `_SetLatestTargetFrameworkVersion`
runs as part of the `PackageReference` target chain. Fortunately
that chain is run as part of `ResolveAssemblyReferencesDependsOn`.
So we just need to make sure that our target in run as part of
that target chain in order to fix this issue.1 parent 47f370f commit 4a3cb4d
File tree
1 file changed
+7
-0
lines changed- src/Xamarin.Android.Build.Tasks
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
143 | 150 | | |
144 | 151 | | |
145 | 152 | | |
| |||
0 commit comments