Skip to content

Document literal CLI path option breaking change - #56927

Draft
MiYanni wants to merge 1 commit into
mainfrom
miyanni-literal-cli-path-breaking-change
Draft

MiYanni wants to merge 1 commit into
mainfrom
miyanni-literal-cli-path-breaking-change

Conversation

@MiYanni

@MiYanni MiYanni commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

🤖Copilot🤖

Summary

Document the planned .NET 12 behavioral change that escapes CLI-owned literal path options before forwarding them to MSBuild. Add the compatibility article to the .NET 12 index and compatibility TOC.

Fixes #56926

Implementation: dotnet/sdk#56972
Original product issue: dotnet/sdk#49671

Sources and review notes

  • Adapted from the implementation diff and tests at SDK commit 0e197e4a9951ff264203b051d511fa1da9a41d2c: affected command/option table, previous and new behavior, unchanged explicit -p: handling, and the dotnet watch exclusion.
  • Adapted from the SDK PR's breaking-change explanation: percent-escaped output-path example and literal-path / explicit-property migration guidance.
  • Newly generated: article prose and structure, cross-links, metadata, and navigation entries. The article uses ai-usage: ai-generated; SDK and documentation owners should review the scope and migration guidance.
  • Release uncertainty: the SDK source targets 12.0.100 with alpha / iteration 1, but the implementation PR remains unmerged and has no release milestone. The first shipped build/public preview is unconfirmed. This PR is a draft and explicitly marks the version as planned rather than asserting Preview 1. Confirm the release and remove the temporary review note before publication.
  • No managed API signatures change. No new compatibility switch, target-framework gate, or SdkAnalysisLevel opt-out is claimed.

Validation

  • npx --yes markdownlint-cli2 docs\core\compatibility\12.md docs\core\compatibility\sdk\12\literal-path-options.md — passed, zero issues, using a checksum-verified session-local Node.js runtime because Node.js was not installed.
  • git diff --cached --check — passed before commit.
  • Required section-order, relative-link, index-entry, and TOC-entry checks — passed.
  • All three published command examples executed successfully on the installed baseline SDK 10.0.300-preview.0.26177.108; per-example output evidence is recorded in a PR comment. The new .NET 12 CLI itself was not built or executed locally; its escaping behavior was reviewed against the implementation and regression tests.
  • OpenPublishing build warnings and repository checks will be inspected after this PR starts validation.

Internal previews

File Preview link
docs/core/compatibility/12.md Learn preview
docs/core/compatibility/sdk/12/literal-path-options.md Learn preview
docs/core/compatibility/toc.yml Learn preview

Build report

Document the affected managed CLI options and migration from MSBuild-escaped values to literal paths. Keep the .NET 12 release version explicitly unconfirmed while the implementation is under review.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 16, 2026 19:58
@dotnetrepoman dotnetrepoman Bot added this to the November 2026 milestone Nov 16, 2026
@dotnet-policy-service dotnet-policy-service Bot added the okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings. label Nov 16, 2026
@MiYanni

MiYanni commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

🤖Copilot🤖
Command-example verification on Windows with .NET SDK 10.0.300-preview.0.26177.108 and a temporary standalone console project named LiteralPathExample:

Published example Observed result
dotnet build --output out%20dir Passed; produced out dir\LiteralPathExample.dll, which confirms the documented previous behavior on the baseline SDK.
dotnet build --output "out dir" Passed; produced out dir\LiteralPathExample.dll, which verifies the literal-space migration.
dotnet build -p:OutputPath=out%20dir/ Passed; produced out dir\LiteralPathExample.dll, which verifies intentional MSBuild escape interpretation through the explicit property.

Each build completed with zero warnings and zero errors, and the expected DLL path was checked on disk. The .NET 12 CLI command's new literal-percent output was not executed locally; that behavior is supported by the implementation's MSBuildPropertyEscaping wiring and percent-escaping / filesystem regression tests, rather than a claim that the installed baseline SDK includes the fix.

The tracking issue was opened under this PR author's account, so GitHub cannot request the issue opener as a reviewer of their own PR. Review is requested from the template-assigned documentation owner instead. The draft must remain unpublished until the implementation's first shipped SDK version is confirmed.

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.

🔵 Needs a closer look

The SDK implementation remains unmerged and its first shipped release is unconfirmed, requiring SDK and documentation owners to confirm final behavior and release scope before publication.

No open issues 🎉

What changed in this PR

This PR documents the planned .NET 12 CLI change that preserves MSBuild-special characters in literal path options and adds the article to the compatibility navigation.

Changes:

  • Explain affected options, previous and new behavior, and migration guidance.
  • Clarify that explicit MSBuild properties and dotnet watch behavior remain unchanged.
  • Mark the release as planned, pending confirmation of the first shipped SDK version.
File Description
docs/​core/​compatibility/​toc.yml Add the article under .NET 12 SDK and MSBuild changes.
docs/​core/​compatibility/​sdk/​12/​literal-path-options.md Document literal-path behavior, scope, and recommended actions.
docs/​core/​compatibility/​12.md List the article as a behavioral breaking change.

Review effort: Balanced

@MiYanni

MiYanni commented Nov 16, 2026

Copy link
Copy Markdown
Member Author

🤖Copilot🤖
Publishing validation completed for commit 84d1cb4ec2aa62b0c9c91d333b71fca5b582c955: I opened the OpenPublishing.Build details report and confirmed 0 build errors and 0 build warnings. All three changed files succeeded. The report's 12 suggestions concern unchanged files, not this PR.

Repository Markdownlint, MSDocs build verifier, snippets-build, CodeQL, dependency review, and the build-warning check passed. PoliCheck is still pending at the time of this update; no claim that every check is complete.

The remaining publication hold is release information: confirm the first shipped SDK version for dotnet/sdk#56972, replace the planned version, and remove the temporary under-review note before the documentation leaves draft.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet-fundamentals/svc okr-quality Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Breaking change]: CLI path options preserve literal MSBuild-special characters

2 participants