Skip to content

Source Build Outer Loop failing on main: NETSDK1242 building mobile targets with Mono on .NET 11 #5603

Description

@mthalman

Summary

The Source Build Outer Loop pipeline (1525) is failing on main because the source-built SDK attempts to build mobile (android/ios/tvos/maccatalyst) projects with the Mono runtime, which is no longer supported in .NET 11.

Failing build

  • Pipeline: Source Build Outer Loop (id 1525)
  • Build: 3006776
  • Branch: refs/heads/main
  • Failing leg: SB_CentOSStream10_Mono_Offline_CurrentSourceBuiltSdk_x64
  • Failing task: Build (centOSStreamContainer)

Error

NETSDK1242: Building android/ios/tvos/maccatalyst projects with the Mono runtime is not supported in .NET 11.0 and later. Use the CoreCLR runtime or target .NET 10.0.

Root cause

The runtime restore in the Mono offline leg pulls in .NET 11 mobile targets while using the Mono runtime. As of .NET 11, mobile workload projects can no longer be built against the Mono runtime.

Suggested fix

Update the source-build / runtime configuration so the Mono leg does not build mobile targets under .NET 11 — either switch those targets to the CoreCLR runtime or target .NET 10.0 for the affected projects.

Category

Configuration

Metadata

Metadata

Labels

area-buildImprovements in source-build's own build processops-monitorIssues created/handled by the source build monitor role

Type

No type
No fields configured for issues without a type.

Projects

Status
11.0

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions