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
[xabt] don't set $(UseMonoRuntime) by default (#10527)
This makes CoreCLR the default runtime.
Fixes or (temporarily) disables a number of tests which were failing because of a variety
of reasons, such as:
- Use of 32-bit ABIs (CoreCLR supports only 64-bit ones)
- MonoAOT use (not supported by CoreCLR)
- Using discrete assemblies in the apk instead of assembly stores (CoreCLR supports only the latter)
- Mono.Cecil lack of support for R2R assembly images.
- A handful of typemap tests (CoreCLR managed typemap support is buggy, another solution is being worked on)
Additionally, it parametrizes a number of tests with the runtime type,
so that they ran for both MonoVM and CoreCLR (and, eventually, NativeAOT)
Co-authored-by: Marek Habersack <grendel@twistedcode.net>
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/Microsoft.Android.Sdk/targets/Microsoft.Android.Sdk.DefaultProperties.targets
Assert.IsTrue(b.Build(proj),"Build should have succeeded.");
109
115
StringAssertEx.DoesNotContainRegex(@$"Using profile data file.*dotnet\.aotprofile",b.LastBuildOutput,"Should not use default AOT profile",RegexOptions.IgnoreCase);
0 commit comments