forked from dotnet/android
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[One .NET] add XA1029 for $(AotAssemblies)
Fixes: dotnet#7297 The way we support `$(AotAssemblies)` requires us to *know* the names of packs in the Mono workload. Let's drop support for `$(AotAssemblies)` and use the new `$(RunAOTCompilation)` property instead. We can begin by emitting a warning in .NET 7, to potentially remove/error in .NET 8.
- Loading branch information
1 parent
beaef75
commit 0ae2308
Showing
8 changed files
with
46 additions
and
3 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
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,30 @@ | ||
--- | ||
title: Xamarin.Android warning XA1029 | ||
description: XA1029 warning code | ||
ms.date: 09/06/2022 | ||
--- | ||
# Xamarin.Android warning XA1029 | ||
|
||
## Example messages | ||
|
||
``` | ||
warning XA1029: The 'AotAssemblies' MSBuild property is deprecated. Edit the project file in a text editor to remove this property, and use the 'RunAOTCompilation' MSBuild property instead. | ||
``` | ||
|
||
## Solution | ||
|
||
Instead of using: | ||
|
||
```xml | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<AotAssemblies>true</AotAssemblies> | ||
</PropertyGroup> | ||
``` | ||
|
||
Use instead: | ||
|
||
```xml | ||
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> | ||
<RunAOTCompilation>true</RunAOTCompilation> | ||
</PropertyGroup> | ||
``` |
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