.NET för Android-varning XA0036

Problematik

Egenskapen $(AndroidSupportedAbis) MSBuild stöds inte längre i .NET 6 och senare.

Lösning

Öppna projektfilen i Visual Studio eller någon annan textredigerare och ta bort <AndroidSupportedAbis/>. RuntimeIdentifiers Använd egenskapen MSBuild i stället:

<PropertyGroup>
  <RuntimeIdentifiers>android-arm;android-arm64;android-x64</RuntimeIdentifiers>
</PropertyGroup>

I .NET 11 stöder CoreCLR dessa tre RID:er. Android NativeAOT är experimentellt och stöder samma uppsättning. android-x86 RID var tillgängligt via .NET 10 Mono-verktygskedjan men är inte tillgänglig i .NET 11.

För mer information, se Microsoft-dokumentationen om körningsidentifierare.

Exempelmeddelanden

warning XA0036: The 'AndroidSupportedAbis' MSBuild property is no longer supported. Edit the project file in a text editor, remove any uses of 'AndroidSupportedAbis', and use the 'RuntimeIdentifiers' MSBuild property instead.