.NET for Android エラー XA0035

問題点

.NET for Android では、 ファイルで指定されているアプリケーションのターゲット .csproj特定できませんでした。

解決策

Visual Studio または別のテキスト エディターでプロジェクト ファイルを開き、RuntimeIdentifiers MSBuild プロパティのすべての値が有効であることを確認します。

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

.NET 11 では、CoreCLR はこれら 3 つの RID をサポートしています。 Android NativeAOT は試験段階であり、同じセットをサポートしています。

詳細については、 ランタイム識別子 に関する Microsoft のドキュメントを参照してください。

Example messages (メッセージの例)

error XA0035: Unable to determine the Android ABI from the value 'XYZ'. Edit the project file in a text editor and set the 'RuntimeIdentifiers' MSBuild property to contain only valid identifiers for the Android platform.