Skip to content

ci: remove stage Tests - Android+CoreCLR Skia - #23964

Merged
MartinZikmund merged 1 commit into
feature/breakingchangesfrom
dev/jonpryor/jonp-remove-Android+CoreCLR-stage
Aug 5, 2026
Merged

MartinZikmund merged 1 commit into
feature/breakingchangesfrom
dev/jonpryor/jonp-remove-Android+CoreCLR-stage

Conversation

@jonpryor

@jonpryor jonpryor commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Context: https://devblogs.microsoft.com/dotnet/dotnet-maui-moves-to-coreclr-in-dotnet-11/
Context: https://devblogs.microsoft.com/dotnet/coreclr-progress-and-mono-timeline-dotnet-maui/

In the beginning of mobile development, there was Mono, which eventually became MonoVM:

dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android

…and lo, it was good. (Well, better than using Java!)

In .NET 10, .NET for Android introduced support for using CoreCLR instead of MonoVM. This was done by setting $(UseMonoRuntime)=false:

dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android -p:UseMonoRuntime=false

PR #21477 added this build configuration to the CI pipeline.

In .NET 11 Preview 4, CoreCLR was made the default runtime, i.e. $(UseMonoRuntime)=false became the default. Which means that the two above build commands were actually identical! Using MonoVM was enabled by instead setting $(UseMonoRuntime)=true:

dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android -p:UseMonoRuntime=true

but we never did that.

In .NET 11 Preview 6 when targeting net11.0-android, use of MonoVM became an error:

% dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
  -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android -p:UseMonoRuntime=true
error NETSDK1242: Building Android projects with the Mono runtime is not supported in .NET 11.0 and later. Use the CoreCLR runtime or target .NET 10.0.

Given this current state of affairs, remove the
Tests - Android+CoreCLR Skia stage added in #21477 from the CI pipeline, as it is now redundant.

PR Type:

🏗️ Build or CI related changes

What changed? 🚀

PR Checklist ✅

Context: https://devblogs.microsoft.com/dotnet/dotnet-maui-moves-to-coreclr-in-dotnet-11/
Context: https://devblogs.microsoft.com/dotnet/coreclr-progress-and-mono-timeline-dotnet-maui/

In the beginning of mobile development, there was Mono, which
eventually became MonoVM:

	dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
	  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android

…and lo, it was good.  (Well, better than using Java!)

In .NET 10, [.NET for Android introduced support for using CoreCLR][0]
instead of MonoVM.  This was done by setting `$(UseMonoRuntime)`=false:

	dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
	  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android -p:UseMonoRuntime=false

PR #21477 added this build configuration to the CI pipeline.

In .NET 11 Preview 4, CoreCLR was made the default runtime, i.e.
`$(UseMonoRuntime)`=false became the default.  Which means that the two
above build commands were actually identical!  Using MonoVM was enabled
by instead setting `$(UseMonoRuntime)`=true:

	dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
	  -f net10.0-android -p:UnoTargetFrameworkOverride=net10.0-android -p:UseMonoRuntime=true

but we never did that.

In .NET 11 Preview 6 when targeting net11.0-android, use of MonoVM
became an *error*:

	% dotnet build src/SamplesApp/SamplesApp.Skia.netcoremobile/SamplesApp.Skia.netcoremobile.csproj \
	  -f net11.0-android -p:UnoTargetFrameworkOverride=net11.0-android -p:UseMonoRuntime=true
	error NETSDK1242: Building Android projects with the Mono runtime is not supported in .NET 11.0 and later. Use the CoreCLR runtime or target .NET 10.0.

Given this current state of affairs, *remove* the
**Tests - Android+CoreCLR Skia** stage added in #21477 from the CI
pipeline, as it is now redundant.

[0]: https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-10?view=net-maui-10.0
@jonpryor
jonpryor requested a lite review from Copilot August 4, 2026 18:54
@github-actions github-actions Bot added the area/build Categorizes an issue or PR as relevant to build infrastructure label Aug 4, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes the dedicated Azure DevOps stage that built and ran Skia Android runtime tests under an explicit CoreCLR configuration, based on the premise that CoreCLR is now the default runtime for current Android TFMs and the separate stage has become redundant.

Changes:

  • Removed the Tests - Android+CoreCLR Skia stage from the Skia test stage aggregation template.
  • Deleted the now-unused Android+CoreCLR Skia build and test job templates.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
build/ci/tests/.azure-devops-tests-skia-stages.yml Drops the runtime_tests_skia_android_coreclr stage from the Skia CI stage list.
build/ci/tests/.azure-devops-tests-android-coreclr-skia.yml Removes the Android+CoreCLR Skia runtime test job template (no longer referenced).
build/ci/tests/.azure-devops-tests-android-coreclr-skia-build.yml Removes the Android+CoreCLR Skia build/publish template (no longer referenced).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@MartinZikmund
MartinZikmund enabled auto-merge August 5, 2026 12:32
@MartinZikmund
MartinZikmund merged commit 5e1606f into feature/breakingchanges Aug 5, 2026
65 checks passed
@MartinZikmund
MartinZikmund deleted the dev/jonpryor/jonp-remove-Android+CoreCLR-stage branch August 5, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/build Categorizes an issue or PR as relevant to build infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants