Skip to content

Add NETSDK1242 SDK error documentation#54379

Merged
BillWagner merged 10 commits into
dotnet:mainfrom
kotlarmilos:mobile-netsdk1242-docs
Jun 16, 2026
Merged

Add NETSDK1242 SDK error documentation#54379
BillWagner merged 10 commits into
dotnet:mainfrom
kotlarmilos:mobile-netsdk1242-docs

Conversation

@kotlarmilos

@kotlarmilos kotlarmilos commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Adds reference documentation for the new SDK build error NETSDK1242, introduced in the .NET 11 SDK. The error is raised when a project selects the Mono runtime (UseMonoRuntime=true) for a mobile target platform (android, ios, maccatalyst, tvos) while targeting .NET 11 or later.

This addresses the SDK diagnostic documentation reminder for NETSDK1242.

Changes

  • New page docs/core/tools/sdk-errors/netsdk1242.md describing the error and how to resolve it.
  • Added NETSDK1242 to the SDK error index table (docs/core/tools/sdk-errors/index.md).
  • Added the NETSDK1242 entry to the tools-diagnostics TOC (docs/navigate/tools-diagnostics/toc.yml).

Internal-only information

Source diagnostic: MonoRuntimeNotSupportedForPlatform in dotnet/sdk.


Internal previews

📄 File 🔗 Preview link
docs/core/tools/sdk-errors/index.md .NET SDK error list
docs/core/tools/sdk-errors/netsdk1242.md "NETSDK1242: Building projects with the Mono runtime is not supported in .NET 11.0 and later"
docs/navigate/tools-diagnostics/toc.yml docs/navigate/tools-diagnostics/toc

Document the NETSDK1242 build error, raised when a project selects the
Mono runtime for a mobile platform (android, ios, maccatalyst, tvos)
while targeting .NET 11 or later.
Copilot AI review requested due to automatic review settings June 15, 2026 16:23
@kotlarmilos kotlarmilos requested review from a team and meaghanlewis as code owners June 15, 2026 16:23
@dotnetrepoman dotnetrepoman Bot added this to the June 2026 milestone Jun 15, 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

Adds reference documentation for the .NET SDK diagnostic NETSDK1242, and wires it into the existing SDK errors index and Tools diagnostics navigation.

Changes:

  • Added a new SDK error reference page for NETSDK1242 with cause and resolution guidance.
  • Added NETSDK1242 to the SDK error index table.
  • Added NETSDK1242 to the Tools diagnostics TOC.
Show a summary per file
File Description
docs/navigate/tools-diagnostics/toc.yml Adds NETSDK1242 to the Tools diagnostics navigation tree.
docs/core/tools/sdk-errors/netsdk1242.md New error reference page documenting NETSDK1242 and resolution options.
docs/core/tools/sdk-errors/index.md Adds NETSDK1242 to the SDK errors index table.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 3

Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
kotlarmilos and others added 3 commits June 15, 2026 19:40
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread docs/core/tools/sdk-errors/index.md Outdated
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
kotlarmilos and others added 5 commits June 16, 2026 13:46
The previous wording told users to build with the .NET 10 SDK, which does not
resolve the error when the project targets .NET 11.0 or later. Recommend the two
real fixes: use the CoreCLR runtime, or retarget the project to .NET 10. Drop the
global.json approach, which is unnecessary, and align the title and body on
".NET 11.0 and later".

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the NETSDK1242 entry from the Tools diagnostics navigation. The error
reference page and the SDK errors index cover the diagnostic.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
List the error reference page in the Tools diagnostics navigation, matching every
other NETSDK error page and avoiding an orphaned-article build warning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the resolution wording but remove the code block; the property change is
clear from the text.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Remove the blank line between the two resolution bullets.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread docs/core/tools/sdk-errors/netsdk1242.md Outdated
Co-authored-by: Vitek Karas <10670590+vitek-karas@users.noreply.github.com>

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This LGTM. I'll :shipit: now.

@BillWagner BillWagner merged commit 68cca49 into dotnet:main Jun 16, 2026
9 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