forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copy PR 7406 to test if it works for marshal methods
- Loading branch information
Showing
9 changed files
with
69 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: Xamarin.Android error XA1030 | ||
description: XA1030 error code | ||
ms.date: 09/26/2022 | ||
--- | ||
# Xamarin.Android error XA1030 | ||
|
||
## Example messages | ||
|
||
``` | ||
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. | ||
``` | ||
|
||
## Solution | ||
|
||
Instead of using: | ||
|
||
```xml | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<RunAOTCompilation>true</RunAOTCompilation> | ||
<!-- Either of these disable the linker/trimmer --> | ||
<PublishTrimmed>false</PublishTrimmed> | ||
<AndroidLinkMode>None</AndroidLinkMode> | ||
</PropertyGroup> | ||
``` | ||
|
||
Use the default value for `$(PublishTrimmed)` and `$(AndroidLinkMode)` | ||
instead: | ||
|
||
```xml | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<RunAOTCompilation>true</RunAOTCompilation> | ||
</PropertyGroup> | ||
``` | ||
|
||
Additionally, as mentioned by [`XA0119`](xa0119.md), you should not | ||
use `$(RunAOTCompilation)` in `Debug` configurations. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters