Skip to content

[build] Remove Mono dependency.#24736

Merged
rolfbjarne merged 2 commits intomainfrom
dev/rolf/remove-mono-dependency-finally
Feb 19, 2026
Merged

[build] Remove Mono dependency.#24736
rolfbjarne merged 2 commits intomainfrom
dev/rolf/remove-mono-dependency-finally

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

We no longer need it.

We no longer need it.
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 Mono runtime dependency from the xamarin-macios build system. As the project has fully transitioned to .NET, the Mono Framework (classic Mono runtime) is no longer required for building or running the tools and projects.

Changes:

  • Removed Mono provisioning and installation logic from build/provisioning scripts
  • Removed Mono-related variables and paths from build configuration
  • Deprecated the --no-mono-path bgen option (hidden no-op until XAMCORE_5_0)

Reviewed changes

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

Show a summary per file
File Description
tools/devops/provision-shared.in.csx Removed ProvisionMono function
tools/devops/build-provisioning.csx Removed call to ProvisionMono
tools/devops/automation/templates/windows/reserve-mac.yml Removed duplicate --ignore-mono flags from system-dependencies.sh call
tools/devops/Makefile Removed MONO_PACKAGE substitution from provisioning script generation
tests/test-dependencies.sh Removed --provision-mono flag
tests/generator/Makefile Removed MSBUILD_EXE_PATH export pointing to Mono MSBuild
tests/dotnet/size-comparison/common.mk Removed MSBUILD_EXE_PATH export for oldnet builds
tests/common/mac/ProjectTestHelpers.cs Removed MONO_PATH environment variable clearing
tests/Makefile Removed SYSTEM_MONO from test configuration files
system-dependencies.sh Removed all Mono checking, provisioning, and installation logic
src/bgen/BindingTouch.cs Deprecated --no-mono-path option (hidden no-op, conditionally compiled out in XAMCORE_5_0)
msbuild/Makefile Removed SYSTEM_MONO export
mk/mono.mk Deleted entire file containing Mono version/branch/directory configuration
Make.config Removed Mono version requirements, paths, and related variables

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne enabled auto-merge (squash) February 18, 2026 18:34
@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #09b23b2] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 09b23b235906d75aba49ba83c7058cf77b1d58e1 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [CI Build #09b23b2] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 09b23b235906d75aba49ba83c7058cf77b1d58e1 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

✅ [PR Build #09b23b2] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 09b23b235906d75aba49ba83c7058cf77b1d58e1 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🔥 Failed to compare API and create generator diff 🔥

Error: The system requirements for the hash to compare against (0d0f787) are different than for the current hash. Comparison is currently not supported in this scenario.

Pipeline on Agent
Hash: 09b23b235906d75aba49ba83c7058cf77b1d58e1 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Copy Markdown
Collaborator

🚀 [CI Build #09b23b2] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 156 tests passed 🎉

Tests counts

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 11 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 09b23b235906d75aba49ba83c7058cf77b1d58e1 [PR build]

@rolfbjarne rolfbjarne disabled auto-merge February 19, 2026 16:32
@rolfbjarne rolfbjarne merged commit 3c87551 into main Feb 19, 2026
46 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants