Skip to content

Replace dotnet.config with global.json in dotnet test#48295

Merged
IEvangelist merged 8 commits intodotnet:mainfrom
mariam-abdulla:replace-dotnet.config-with-global.json
Oct 14, 2025
Merged

Replace dotnet.config with global.json in dotnet test#48295
IEvangelist merged 8 commits intodotnet:mainfrom
mariam-abdulla:replace-dotnet.config-with-global.json

Conversation

@mariam-abdulla
Copy link
Copy Markdown
Member

@mariam-abdulla mariam-abdulla commented Sep 8, 2025

This pull request updates the documentation for the dotnet test command to clarify how to enable the Microsoft Testing Platform (MTP) test runner. The instructions now reference global.json instead of the deprecated dotnet.config, and the example configurations have been updated accordingly.

Documentation updates for test runner configuration:

  • Updated the description to specify that enabling MTP is now done by setting the test runner in the global.json file, rather than using a dotnet.config file.
  • Replaced all example configurations from INI-style dotnet.config to JSON-style global.json format.
  • Updated warning messages to reference opting in via global.json instead of dotnet.config.

Internal previews

📄 File 🔗 Preview link
docs/core/testing/unit-testing-with-dotnet-test.md Testing with 'dotnet test'
docs/core/tools/dotnet-test.md dotnet test command
docs/core/tools/global-json.md global.json overview
docs/core/whats-new/dotnet-10/sdk.md 1. Create a single-file C# app with a shebang

@mariam-abdulla mariam-abdulla requested review from a team and adegeo as code owners September 8, 2025 07:05
@dotnetrepoman dotnetrepoman Bot added this to the September 2025 milestone Sep 8, 2025
@dotnet-policy-service dotnet-policy-service Bot added dotnet-fundamentals/svc dotnet-cli/subsvc community-contribution Indicates PR is created by someone from the .NET community. labels Sep 8, 2025
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

LGTM, but blocking merge until dotnet/sdk#50673 is merged.

@Youssef1313 Youssef1313 added 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) and removed community-contribution Indicates PR is created by someone from the .NET community. labels Sep 8, 2025
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

@mariam-abdulla Please make sure to update the other pages that mention dotnet.config.

  • docs/core/whats-new/dotnet-10/sdk.md
  • docs/core/testing/unit-testing-with-dotnet-test.md

Comment thread docs/core/tools/dotnet-test.md Outdated
@mariam-abdulla
Copy link
Copy Markdown
Member Author

@mariam-abdulla Please make sure to update the other pages that mention dotnet.config.

  • docs/core/whats-new/dotnet-10/sdk.md
  • docs/core/testing/unit-testing-with-dotnet-test.md

PR updated

Comment thread docs/core/tools/dotnet-test.md
@Youssef1313 Youssef1313 removed the 🚧 Hold for related PR Indicates a PR can only be merged when other related PRs are merged (see comments for links) label Sep 11, 2025
Comment thread docs/core/testing/unit-testing-with-dotnet-test.md
Comment thread docs/core/testing/unit-testing-with-dotnet-test.md Outdated
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Copy link
Copy Markdown
Member

@Youssef1313 Youssef1313 left a comment

Choose a reason for hiding this comment

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

LGTM but needs an answer on the open question, as this is a breaking change between RC1 (released already) and RC2 (not yet released).

Comment thread docs/core/tools/global-json.md Outdated
Comment thread docs/core/tools/global-json.md Outdated
mariam-abdulla and others added 2 commits September 15, 2025 08:55
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
Co-authored-by: Youssef Victor <youssefvictor00@gmail.com>
@IEvangelist IEvangelist added the blocked Blocked for some reason label Oct 13, 2025
@IEvangelist IEvangelist enabled auto-merge (squash) October 13, 2025 14:42
@IEvangelist
Copy link
Copy Markdown
Member

Waiting for RC 2, remove the blocked label once that ships.

@Youssef1313 Youssef1313 removed the blocked Blocked for some reason label Oct 14, 2025
@IEvangelist IEvangelist merged commit 5989952 into dotnet:main Oct 14, 2025
10 checks passed
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.

4 participants