Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 6, 2026

The tutorial creates XUnit.Coverage.sln but the build command didn't specify it, causing MSBuild to fail with error MSB1011 when multiple solution files exist in the directory.

Changes

  • Updated dotnet build to dotnet build XUnit.Coverage.sln on line 152

This aligns with the solution file created earlier in the tutorial and matches the pattern used by other commands that already specify the solution file explicitly (dotnet sln XUnit.Coverage.sln add ...).

Original prompt

This section details on the original issue you should resolve

<issue_title>Missing details of command</issue_title>
<issue_description>### Type of issue

Missing information

Description

While following the documentation, at this step, the following error is thrown:
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.

There are 2 solution files available at the moment in working directory, namely

  1. Xunit.Coverage.sln
  2. UnitTestingCodeCoverage.sln

Presumably, the complete command should be dotnet build .\Xunit.Coverage.sln

Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/unit-testing-code-coverage?tabs=windows

Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/unit-testing-code-coverage.md

Document Version Independent Id

ab6ce421-f5e5-94f1-e707-32763b3a6a24

Article author

@IEvangelist</issue_description>

Comments on the Issue (you are @copilot in this section)

@gewarren cc @meaghanlewis

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.


Internal previews

📄 File 🔗 Preview link
docs/core/testing/unit-testing-code-coverage.md docs/core/testing/unit-testing-code-coverage

Copilot AI changed the title [WIP] Fix missing details of command in documentation Specify solution file in dotnet build command Jan 6, 2026
Copilot AI requested a review from meaghanlewis January 6, 2026 19:25
@meaghanlewis meaghanlewis marked this pull request as ready for review January 6, 2026 19:53
Copilot AI review requested due to automatic review settings January 6, 2026 19:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes a tutorial error where the dotnet build command failed with MSB1011 when multiple solution files existed in the directory. The fix specifies the solution file explicitly in the build command.

  • Updated dotnet build to dotnet build XUnit.Coverage.sln to match the solution file created earlier in the tutorial
  • Ensures consistency with other commands that already specify the solution file explicitly (dotnet sln XUnit.Coverage.sln add)

@meaghanlewis meaghanlewis requested a review from adegeo January 6, 2026 23:15
@meaghanlewis meaghanlewis merged commit 51d3956 into main Jan 7, 2026
20 checks passed
@meaghanlewis meaghanlewis deleted the copilot/fix-command-details-issue branch January 7, 2026 17:05
gewarren pushed a commit to gewarren/docs that referenced this pull request Jan 8, 2026
* Initial plan

* Fix dotnet build command to specify solution file name

Co-authored-by: meaghanlewis <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: meaghanlewis <[email protected]>
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.

Missing details of command

3 participants