Repository navigation
Fix solution setup order in C# testing tutorials - #56764
Merged
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues for the tutorial setup-order changes.
No open issues 🎉
What changed in this PR
Corrects the setup order in three C# testing tutorials to address #41305: readers add the class library to the solution before they rename or edit its source file in Visual Studio.
Changes:
- Moves the solution-add step before source-file edits in the xUnit, NUnit, and MSTest tutorials.
- Clarifies that
Class1.csresides in thePrimeServicedirectory. - Aligns the xUnit command summary with the corrected sequence. Sample code and metadata remain unchanged.
| File | Description |
|---|---|
docs/core/testing/unit-testing-csharp-with-xunit.md |
Reorders setup steps and command summary, and clarifies the source-file location. |
docs/core/testing/unit-testing-csharp-with-nunit.md |
Moves solution registration before source edits and clarifies the file location. |
docs/core/testing/unit-testing-csharp-with-mstest.md |
Separates project creation from source edits and adds the project to the solution first. |
Review effort: Balanced
Evangelink
enabled auto-merge (squash)
November 5, 2026 16:36
YuliiaKovalova
approved these changes
Nov 5, 2026
BillWagner
disabled auto-merge
November 5, 2026 16:46
BillWagner
enabled auto-merge (squash)
November 5, 2026 16:46
Member
|
closing and reopening to trigger a build |
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
Because
dotnet new classlibdoesn't add the project to the solution, readers who use Visual Studio can't rename or editClass1.csin Solution Explorer at the original point in these tutorials.Move the class-library solution-add step before the source-file edits in the C# xUnit, NUnit, and MSTest tutorials, clarify the file location, and align the xUnit command summary. Sample code and metadata are unchanged.
Validation: the corrected setup sequence and
dotnet build --no-restore --verbosity quietpassed with .NET SDKs 8.0.427 and 10.0.403. Solution membership was confirmed before the rename. Ordering assertions, Markdownlint-cli2 on all three changed files (zero issues), andgit diff --checkpassed.Fixes #41305
Internal previews
Build report