Skip to content

Support solution filter (.slnf) inputs in dotnet workload restore - #55599

Draft
marcpopMSFT with Copilot wants to merge 1 commit into
mainfrom
copilot/improve-workload-restore-support
Draft

Support solution filter (.slnf) inputs in dotnet workload restore#55599
marcpopMSFT with Copilot wants to merge 1 commit into
mainfrom
copilot/improve-workload-restore-support

Conversation

Copilot AI commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

dotnet workload restore did not accept solution filter inputs, even though solution filters are a standard way to scope project graphs in CI/dev workflows. This change aligns workload restore input handling with restore command behavior for .slnf.

  • Command input handling

    • Extend dotnet workload restore target-path recognition to treat .slnf as a valid solution input.
    • Ensure the solution filter path is forwarded through the existing restore/MSBuild invocation path without altering workload resolution semantics.
  • Consistency with restore command

    • Reuse the same input classification pattern used by dotnet restore so command behavior is consistent across restore surfaces.
    • Preserve existing behavior for .sln/project/directory inputs.
  • Focused test coverage

    • Add/update command-level tests to cover .slnf input acceptance and forwarding for workload restore.
    • Keep coverage scoped to the new input type to avoid broad behavioral changes.

Example (now supported):

dotnet workload restore MyRepo.PlatformA.slnf

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
3 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI linked an issue Aug 4, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for solution filters in workload restore Support solution filter (.slnf) inputs in dotnet workload restore Aug 4, 2026
Copilot AI requested a review from marcpopMSFT August 4, 2026 20:58
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.

Workload restore - support solution filters

2 participants