Add NETSDK1242 SDK error documentation#54379
Open
kotlarmilos wants to merge 2 commits into
Open
Conversation
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.
Contributor
There was a problem hiding this comment.
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
docs/core/tools/sdk-errors/netsdk1242.mddescribing the error and how to resolve it.NETSDK1242to the SDK error index table (docs/core/tools/sdk-errors/index.md).NETSDK1242entry to the tools-diagnostics TOC (docs/navigate/tools-diagnostics/toc.yml).Internal-only information
Source diagnostic:
MonoRuntimeNotSupportedForPlatformin dotnet/sdk.Internal previews