Fix Windows stage MSB1011 by specifying solution file#61
Closed
Chris-Wolfgang wants to merge 1 commit into
Closed
Conversation
Repo has multiple .slnx files (IEquatable Extensions.slnx, Solution.slnx). Bare 'dotnet restore' / 'dotnet build' fails with MSB1011. Discover and specify the solution file explicitly, same fix as docfx.yaml. This unblocks Dependabot PRs (e.g. #57) which currently fail Stage 2. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
3 tasks
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
The Windows stage in
pr.yamluses baredotnet restore/dotnet buildwhich fails withMSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.The repo has two solution files (
IEquatable Extensions.slnxandSolution.slnx), so MSBuild can't pick one automatically.Fix
Discover the
.slnx(or.sln) and pass it explicitly todotnet restore/dotnet build. Same pattern already used indocfx.yaml.Why this is blocking
PR #57 (Dependabot bump for
coverlet.collector) is failing Stage 2 with this error. Other future Dependabot PRs will hit the same wall.Test plan
🤖 Generated with Claude Code