-
Couldn't load subscription status.
- Fork 561
[Xamarin.Android.Build.Tasks] don't set $(UseMonoRuntime) by default
#10527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
ad0ed28 to
c9bb3bb
Compare
|
I assume this means that in .NET 11 CoreCLR will be the default runtime… |
dbf485e to
8000aef
Compare
| <_AndroidRuntime Condition=" '$(PublishAot)' == 'true' and '$(UseMonoRuntime)' != 'true' ">NativeAOT</_AndroidRuntime> | ||
| <_AndroidRuntime Condition=" '$(PublishAot)' != 'true' and '$(UseMonoRuntime)' != 'true' ">CoreCLR</_AndroidRuntime> | ||
| <_AndroidRuntime Condition=" '$(_AndroidRuntime)' == '' ">MonoVM</_AndroidRuntime> | ||
| <_AndroidRuntime Condition=" '$(PublishAot)' == 'true' ">NativeAOT</_AndroidRuntime> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in Debug builds when you have <PublishAot>true</PublishAot> in the project file? Does it try to still run with NativeAOT? For "PublishAOT Debug builds", I believe we need to use CoreCLR 🤔 I suppose we can fix that later though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think in this case it will try to use Mono AOT as it is now, at least the error messages I've seen suggest that. Yeah, we can't use NativeAOT for debug builds.
8000aef to
0ead24b
Compare
This requires some more tweaking, tbc tomorrow
…files DotNetBuildLibrary test fully works now
Which is weird, it should work for MonoVM at least but.. it doesn't. TBC
Making the test work for CoreCLR and NativeAOT is a more involved affair, requires testing each set of parameters individually as changing any of them changes the code, which needs to be verified. Also, the previous changes somehow made the previously working Mono tests to fail. Let's leave it for later.
0ead24b to
3492e3f
Compare
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
No description provided.