问题
$(AndroidSupportedAbis).NET 6 及更高版本不再支持 MSBuild 属性。
解决方案
在 Visual Studio 或其他文本编辑器中打开项目文件并删除<AndroidSupportedAbis/>。 请改用 RuntimeIdentifiers MSBuild 属性:
<PropertyGroup>
<RuntimeIdentifiers>android-arm;android-arm64;android-x86;android-x64</RuntimeIdentifiers>
</PropertyGroup>
有关详细信息,请参阅 有关运行时标识符 的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.