Skip to content

Reject unavailable .NET 12 Mono SDK toolchains - #3278

Merged
timcassell merged 2 commits into
dotnet:masterfrom
kotlarmilos:dev/kotlarmilos/mono-pack-removal
Oct 5, 2026
Merged

timcassell merged 2 commits into
dotnet:masterfrom
kotlarmilos:dev/kotlarmilos/mono-pack-removal

Conversation

@kotlarmilos

Copy link
Copy Markdown
Member

Description

This PR reports a validation error for Mono SDK toolchains targeting .NET 12 and later instead of requesting missing runtime packs. It respects explicit target frameworks and keeps earlier Mono runtimes and CoreCLR unchanged.

Contributes to dotnet/runtime#134397.

Note

Prepared with GitHub Copilot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9170c669-e132-46bb-8258-e448425535d6
@timcassell

Copy link
Copy Markdown
Collaborator

If it's always rejected, we should remove the monikers also. (#3253 (comment))

CsProjNetToolchain.ValidateAsync always rejects Mono, MonoWasm, and
MonoWasmAot runtimes targeting .NET 12 and later, so the well-known
mono12.0, monowasm12.0, and monowasmaot12.0 monikers and their cached
runtime and toolchain singletons are unreachable. Parsing an explicit
version still resolves through the uncached fallback.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9170c669-e132-46bb-8258-e448425535d6

@timcassell timcassell left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @kotlarmilos.

@timcassell
timcassell merged commit 34da531 into dotnet:master Oct 5, 2026
11 checks passed
@timcassell timcassell added this to the v0.16.0 milestone Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants