Skip to content

Update condition for DisableWarnForInvalidRestoreProjects - #17121

Merged
ViktorHofer merged 2 commits into
mainfrom
ViktorHofer-patch-2
Jul 15, 2026
Merged

ViktorHofer merged 2 commits into
mainfrom
ViktorHofer-patch-2

Conversation

@ViktorHofer

@ViktorHofer ViktorHofer commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Needed to simplify msbuild's project filtering infra.

To double check:

Copilot AI review requested due to automatic review settings July 15, 2026 08:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the Arcade SDK toolset build logic to also propagate DisableWarnForInvalidRestoreProjects=true in non-.NET-product-build scenarios when a repo explicitly opts into that suppression via Build.props, aligning restore behavior with broader ExcludeFromBuild usage.

Changes:

  • Extend the condition that injects DisableWarnForInvalidRestoreProjects=true into the common property set to include an explicit opt-in flag ($(DisableWarnForInvalidRestoreProjects)), not only $(DotNetBuild).
  • Add clarifying inline comments describing the intended usage outside .NET product build mode.
Show a summary per file
File Description
src/Microsoft.DotNet.Arcade.Sdk/toolset/Build.proj Expands the condition for passing DisableWarnForInvalidRestoreProjects=true so repos can opt into suppressing restore warnings outside DotNetBuild.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

Copilot AI review requested due to automatic review settings July 15, 2026 09:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 0 new

@ViktorHofer
ViktorHofer enabled auto-merge (squash) July 15, 2026 10:08
@ViktorHofer
ViktorHofer merged commit 9c41b25 into main Jul 15, 2026
10 of 11 checks passed
@ViktorHofer
ViktorHofer deleted the ViktorHofer-patch-2 branch July 15, 2026 10:23
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 16, 2026
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.

3 participants