You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/docs-mobile/messages/xa1040.md
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,24 +8,23 @@ ms.date: 02/24/2025
8
8
## Example messages
9
9
10
10
```
11
-
warning XA1040: The CoreCLR runtime on Android is an experimental feature and not yet suitable for production use. File issues at: https://github.com/dotnet/android/issues
12
11
warning XA1040: The NativeAOT runtime on Android is an experimental feature and not yet suitable for production use. File issues at: https://github.com/dotnet/android/issues
13
12
```
14
13
15
14
## Issue
16
15
17
-
MonoVM is the default, supported runtime for .NET for Android.
16
+
CoreCLR is the default, supported runtime for .NET for Android. Mono is also supported.
18
17
19
-
Other runtimes are currently experimental, such as:
18
+
You can opt into other runtimes via:
20
19
21
-
* CoreCLR, used via `$(UseMonoRuntime)=false`
20
+
* CoreCLR, default
21
+
* MonoVM, used via `$(UseMonoRuntime)=true`
22
22
* NativeAOT, used via `$(PublishAot)=true`
23
23
24
24
## Solution
25
25
26
26
To silence this warning, you can either:
27
27
28
-
* Use MonoVM by removing `$(UseMonoRuntime)=false` or
29
-
`$(PublishAot)=true` from your project file.
28
+
* Use CoreCLR by removing `$(PublishAot)=true` from your project file.
30
29
31
30
* Set `$(EnablePreviewFeatures)` to `true` in your project file.
Copy file name to clipboardExpand all lines: src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Utilities/ProjectExtensions.cs
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -7,21 +7,20 @@ public static class ProjectExtensions
7
7
{
8
8
/// <summary>
9
9
/// Sets the appropriate MSBuild property to use a specific .NET runtime.
10
-
/// NOTE: $(EnablePreviewFeatures) ignores warning XA1040: The CoreCLR/NativeAOT runtime on Android is an experimental feature and not yet suitable for production use.
10
+
/// NOTE: $(EnablePreviewFeatures) ignores warning XA1040: The NativeAOT runtime on Android is an experimental feature and not yet suitable for production use.
0 commit comments