.NET-fout voor Android XA1030

Voorbeeldberichten

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.

" needed as the existing translation is correct.

In plaats van:

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  <RunAOTCompilation>true</RunAOTCompilation>
  <!-- Either of these disable the linker/trimmer -->
  <PublishTrimmed>false</PublishTrimmed>
  <AndroidLinkMode>None</AndroidLinkMode>
</PropertyGroup>

Gebruik de standaardwaarde voor $(PublishTrimmed) en $(AndroidLinkMode) in plaats daarvan:

<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
  <RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup>

Bovendien, zoals XA0119 vermeld heeft, moet u $(RunAOTCompilation) niet gebruiken in Debug configuraties.