Erro XA1030 do .NET para Android
The 'RunAOTCompilation' MSBuild property is only supported when trimming is enabled. Edit the project file in a text editor to set 'PublishTrimmed' to 'true' for this build configuration.
Em vez de usar:
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<RunAOTCompilation>true</RunAOTCompilation>
<!-- Either of these disable the linker/trimmer -->
<PublishTrimmed>false</PublishTrimmed>
<AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>
Use o valor padrão para $(PublishTrimmed)
e $(AndroidLinkMode)
:
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>
Além disso, conforme mencionado por XA0119
, você não deve usar $(RunAOTCompilation)
em Debug
configurações.