-
Notifications
You must be signed in to change notification settings - Fork 531
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] Emit XA1038 for deprecated properties (#…
…8511) Context: 43243b4 Context: 8928f11 Previously we have added the following temporary "fallback flags" for bindings-related changes: - `$(_AndroidUseJavaLegacyResolver)` - `$(_AndroidEmitLegacyInterfaceInvokers)` Because the intent is to remove the old, deprecated code, we need to warn users of these flags that they will be removed in a future version of .NET. Also fix a typo that prevented `$(_AndroidEmitLegacyInterfaceInvokers)` from being able to be set. I don't know that it's worth having unit tests for this; locally this produces: …\bin\Debug\lib\packs\Microsoft.Android.Sdk.Windows\34.99.0\tools\Xamarin.Android.Bindings.Core.targets(37,5): warning XA1037: The '_AndroidUseJavaLegacyResolver' MSBuild property is deprecated and will be removed in .NET 10. See https://aka.ms/net-android-deprecations for more details. …\bin\Debug\lib\packs\Microsoft.Android.Sdk.Windows\34.99.0\tools\Xamarin.Android.Bindings.Core.targets(42,5): warning XA1037: The '_AndroidEmitLegacyInterfaceInvokers' MSBuild property is deprecated and will be removed in .NET 10. See https://aka.ms/net-android-deprecations for more details.
- Loading branch information
Showing
7 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--- | ||
title: Xamarin.Android warning XA1037 | ||
description: XA1037 warning code | ||
ms.date: 27/11/2023 | ||
--- | ||
# Xamarin.Android warning XA1037 | ||
|
||
## Example messages | ||
|
||
``` | ||
The '_AndroidUseJavaLegacyResolver' MSBuild property is deprecated and will be removed in .NET 10. | ||
See https://aka.ms/net-android-deprecations for more details. | ||
``` | ||
|
||
## Solution | ||
|
||
Edit your csproj directly and remove the referenced MSBuild property. | ||
|
||
Test your project to ensure the new behavior is functionally equivalent. | ||
|
||
If not, file an [issue](https://github.com/xamarin/xamarin-android/issues) so a | ||
solution can be found before the deprecated flag is removed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters