Skip to content

[msbuild] Add a condition to make sure empty item groups aren't processed.#25236

Merged
dalexsoto merged 1 commit intomainfrom
dev/rolf/devops-2903015
Apr 23, 2026
Merged

[msbuild] Add a condition to make sure empty item groups aren't processed.#25236
dalexsoto merged 1 commit intomainfrom
dev/rolf/devops-2903015

Conversation

@rolfbjarne
Copy link
Copy Markdown
Member

Copy link
Copy Markdown
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

Adds an MSBuild item-group guard to avoid processing an empty item list, working around dotnet/msbuild#4056 in the Xamarin.Shared post-processing item collection logic.

Changes:

  • Add a Condition to only create _PostProcessingItem entries for frameworks when _FilteredFrameworkToPublish is non-empty.
  • Document the reason for the condition with a reference to the upstream MSBuild issue.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne enabled auto-merge (squash) April 23, 2026 17:00
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@dalexsoto dalexsoto disabled auto-merge April 23, 2026 20:44
@dalexsoto dalexsoto merged commit 91a5a68 into main Apr 23, 2026
14 checks passed
dalexsoto pushed a commit that referenced this pull request Apr 24, 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.

5 participants