Skip to content

[msbuild] Return full paths from FilterStaticFrameworks. Fixes #19602 - #26244

Merged
rolfbjarne merged 1 commit into
mainfrom
dev/rolf/dev-rolf-issue-19602-filter-static-frame
Jul 29, 2026
Merged

rolfbjarne merged 1 commit into
mainfrom
dev/rolf/dev-rolf-issue-19602-filter-static-frame

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

Resolve framework identities and source directories during the existing remote FilterStaticFrameworks task execution.

This removes the redundant GetFullPaths remote round trip from _ComputeFrameworkFilesToPublish.

Fixes #19602

🤖 Pull request created by Copilot

Resolve framework identities and source directories during the existing remote task execution, removing the redundant GetFullPaths round trip.

Fixes #19602

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: c9dc7f52-f7c2-4e21-8a70-0003306a3c28
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

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 improves Windows remote-build performance by having the existing remote FilterStaticFrameworks task return full paths (including SourceDirectory) as part of its normal execution, eliminating the need for a second remote round trip to GetFullPaths in _ComputeFrameworkFilesToPublish (Fixes #19602).

Changes:

  • Update FilterStaticFrameworks to normalize FrameworkToPublish items to full paths and also fully-qualify SourceDirectory while preserving other metadata.
  • Remove the redundant GetFullPaths invocation in _ComputeFrameworkFilesToPublish and wire subsequent steps to use _FilteredFrameworkToPublish directly.
  • Add a unit test validating full-path output and metadata preservation.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
tests/msbuild/Xamarin.MacDev.Tasks.Tests/TaskTests/FilterStaticFrameworksTaskTest.cs Adds coverage asserting FilterStaticFrameworks outputs full paths and preserves metadata.
msbuild/Xamarin.MacDev.Tasks/Tasks/FilterStaticFrameworks.cs Converts output item identities + SourceDirectory metadata to full paths and returns updated items.
dotnet/targets/Xamarin.Shared.Sdk.targets Removes GetFullPaths usage and consumes FilterStaticFrameworks output directly.

@rolfbjarne
rolfbjarne marked this pull request as ready for review July 27, 2026 18:12
@rolfbjarne
rolfbjarne requested a review from mauroa as a code owner July 27, 2026 18:12
@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

✅ API diff for current PR / commit

NET (empty diffs)

✅ API diff vs stable

NET (empty diffs)

ℹ️ Generator diff

Generator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes)

Pipeline on Agent
Hash: 339c6c113ed6fbf458841951446f91d9b3cdd26d [PR build]

@vs-mobiletools-engineering-service2

Copy link
Copy Markdown
Collaborator

🚀 [CI Build #339c6c1] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 203 tests passed 🎉

Tests counts

✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download
✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (macOS): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (Multiple platforms): All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (tvOS): All 1 tests passed. Html Report (VSDrops) Download
✅ framework: All 2 tests passed. Html Report (VSDrops) Download
✅ fsharp: All 4 tests passed. Html Report (VSDrops) Download
✅ generator: All 5 tests passed. Html Report (VSDrops) Download
✅ interdependent-binding-projects: All 4 tests passed. Html Report (VSDrops) Download
✅ introspection: All 4 tests passed. Html Report (VSDrops) Download
✅ linker (iOS): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ linker (macOS): All 21 tests passed. Html Report (VSDrops) Download
✅ linker (tvOS): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 18 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 19 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 19 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ sharpie: All 1 tests passed. Html Report (VSDrops) Download
✅ windows: All 3 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

macOS tests

✅ Tests on macOS Monterey (12): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Ventura (13): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Sequoia (15): All 5 tests passed. Html Report (VSDrops) Download
✅ Tests on macOS Tahoe (26): All 5 tests passed. Html Report (VSDrops) Download

Linux Build Verification

✅ Linux build succeeded

Pipeline on Agent
Hash: 339c6c113ed6fbf458841951446f91d9b3cdd26d [PR build]

@rolfbjarne rolfbjarne added the ready-to-review This PR is ready to review/merge. label Jul 28, 2026
@rolfbjarne
rolfbjarne merged commit 0c80a5c into main Jul 29, 2026
57 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/dev-rolf-issue-19602-filter-static-frame branch July 29, 2026 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot ready-to-review This PR is ready to review/merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows build perf] FilterStaticFrameworks to return full paths

5 participants