Skip to content

Fix Windows stage MSB1011 by specifying solution file#61

Closed
Chris-Wolfgang wants to merge 1 commit into
mainfrom
fix/pr-yaml-windows-restore-solution
Closed

Fix Windows stage MSB1011 by specifying solution file#61
Chris-Wolfgang wants to merge 1 commit into
mainfrom
fix/pr-yaml-windows-restore-solution

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

The Windows stage in pr.yaml uses bare dotnet restore / dotnet build which fails with MSB1011: 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.slnx and Solution.slnx), so MSBuild can't pick one automatically.

Fix

Discover the .slnx (or .sln) and pass it explicitly to dotnet restore / dotnet build. Same pattern already used in docfx.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

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>
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.

1 participant