Skip to content

Breaking change: Document dnx scripts bypassing global.json SDK selection#54645

Open
gewarren with Copilot wants to merge 5 commits into
mainfrom
copilot/update-dnx-scripts-newest-sdk
Open

Breaking change: Document dnx scripts bypassing global.json SDK selection#54645
gewarren with Copilot wants to merge 5 commits into
mainfrom
copilot/update-dnx-scripts-newest-sdk

Conversation

Copilot AI commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

The dnx/dnx.cmd scripts were updated to always invoke the newest installed SDK (via dotnet --list-sdks) rather than going through the .NET muxer, which means global.json SDK pinning is now ignored. This broke users who had pre-.NET 10 SDKs pinned, getting cryptic Unrecognized command or argument 'execute' errors.

Changes

  • New article docs/core/compatibility/sdk/10.0/dnx-scripts-bypass-global-json.md — covers previous/new behavior, reason (version-independent commands should always use newest SDK), and workaround (dotnet dnx to restore muxer-based selection)
  • docs/core/compatibility/10.md — added SDK section entry
  • docs/core/compatibility/toc.yml — added TOC entry alongside existing dnx.ps1 article
  • docs/core/tools/dotnet-tool-exec.md — updated dnx script description to document the bypass behavior and point users to dotnet dnx for the old behavior

Versions affected: .NET 10 SDK 10.0.302, 10.0.400, .NET 11 Preview 6.


Internal previews

📄 File 🔗 Preview link
docs/core/compatibility/10.md Breaking changes in .NET 10
docs/core/compatibility/11.md Breaking changes in .NET 11
docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md dnx scripts bypass global.json SDK selection
docs/core/compatibility/toc.yml docs/core/compatibility/toc
docs/core/tools/dotnet-tool-exec.md dotnet tool exec

Copilot AI requested review from Copilot and removed request for Copilot July 5, 2026 17:45
Copilot AI linked an issue Jul 5, 2026 that may be closed by this pull request
3 tasks
Copilot AI requested review from Copilot and removed request for Copilot July 5, 2026 17:48
Copilot AI changed the title [WIP] Update dnx scripts to use the newest SDK Breaking change: Document dnx scripts bypassing global.json SDK selection Jul 5, 2026
Copilot AI requested a review from gewarren July 5, 2026 17:48
Comment thread docs/core/tools/dotnet-tool-exec.md Outdated
Comment thread docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md
@@ -0,0 +1,42 @@
---
title: "Breaking change: dnx scripts bypass global.json SDK selection"
description: "Learn about the breaking change in .NET 10 SDK 10.0.302 where the dnx and dnx.cmd scripts no longer respect global.json for SDK selection."

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.

Suggested change
description: "Learn about the breaking change in .NET 10 SDK 10.0.302 where the dnx and dnx.cmd scripts no longer respect global.json for SDK selection."
description: "Learn about the breaking change in .NET 11 where the dnx and dnx.cmd scripts no longer respect global.json for SDK selection."

Comment thread docs/core/compatibility/sdk/10.0/dnx-scripts-bypass-global-json.md Outdated
Comment thread docs/core/compatibility/sdk/10.0/dnx-scripts-bypass-global-json.md Outdated
Comment thread docs/core/compatibility/10.md
@gewarren

gewarren commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

@copilot Please respond to feedback

Copilot AI requested review from Copilot and removed request for Copilot July 6, 2026 19:33

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@copilot Please respond to feedback

All feedback addressed in commit Address review feedback: move dnx article to sdk/11, apply text suggestions:

  • Moved article to sdk/11/dnx-scripts-bypass-global-json.md
  • Updated description, new behavior, and recommended action wording
  • Added entry to 11.md; updated 10.md to reference the new path
  • Simplified the dnx description in dotnet-tool-exec.md

Copilot AI requested a review from gewarren July 6, 2026 19:33
@gewarren gewarren marked this pull request as ready for review July 6, 2026 19:36
@gewarren gewarren requested review from a team and meaghanlewis as code owners July 6, 2026 19:36
Copilot AI review requested due to automatic review settings July 6, 2026 19:36
@gewarren gewarren enabled auto-merge (squash) July 6, 2026 19:36

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

Documents a breaking behavioral change in the dnx/dnx.cmd installer scripts: they now select and invoke the newest installed SDK directly (bypassing global.json SDK selection), and provides a workaround (dotnet dnx) for muxer-based selection.

Changes:

  • Added a new breaking change article describing previous behavior, new behavior, rationale, and recommended action.
  • Updated .NET 10 and .NET 11 compatibility indexes to include the new breaking change entry.
  • Updated the compatibility TOC and the dotnet tool exec docs to reference/describe dnx.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
docs/core/tools/dotnet-tool-exec.md Updates the dnx script description under dotnet tool exec.
docs/core/compatibility/toc.yml Adds the breaking change entry under the compatibility TOC.
docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md New breaking change article explaining the dnx script behavior change and workaround.
docs/core/compatibility/11.md Adds the breaking change link to the .NET 11 compatibility index.
docs/core/compatibility/10.md Adds the breaking change link to the .NET 10 compatibility index.

Comment thread docs/core/tools/dotnet-tool-exec.md
Comment thread docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md
Comment thread docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md Outdated
Comment thread docs/core/compatibility/toc.yml
Comment thread docs/core/compatibility/10.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread docs/core/compatibility/sdk/11/dnx-scripts-bypass-global-json.md
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.

[Breaking change]: Update the dnx scripts to use the newest SDK

3 participants