Android용 .NET 경고 XA0036

문제

$(AndroidSupportedAbis) MSBuild 속성은 .NET 6 이상에서 더 이상 지원되지 않습니다.

해결 방법

프로젝트 파일을 Visual Studio 또는 다른 텍스트 편집기에서 열고 <AndroidSupportedAbis/>를 제거하세요. RuntimeIdentifiers 대신 MSBuild 속성을 사용합니다.

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

.NET 11에서 CoreCLR은 이러한 세 가지 RID를 지원합니다. Android NativeAOT는 실험적이며 동일한 집합을 지원합니다. RID는 android-x86 .NET 10 Mono 도구 체인을 통해 사용할 수 있었지만 .NET 11에서는 사용할 수 없습니다.

자세한 내용은 런타임 식별자에 대한 Microsoft 설명서를 참조하세요.

예제 메시지

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.