Skip to content

Conversation

@rolfbjarne
Copy link
Member

Adjust the FilterStaticFrameworks and GetFullPaths tasks to not copy any empty files
from Windows to Mac, because that would most likely overwrite an existing non-empty
file on the Mac.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2679691.
Backport of #24518.

…es remotely.

Adjust the FilterStaticFrameworks and GetFullPaths tasks to not copy any empty files
from Windows to Mac, because that would most likely overwrite an existing non-empty
file on the Mac.

Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2679691.
This reverts commit d79b463.

wrong branch
Copy link
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

This pull request backports a fix from #24518 to the release/9.0.1xx branch that addresses an issue with handling binding frameworks embedded in binding assemblies when building remotely from Windows to Mac. The problem occurred when empty placeholder files created on Windows would overwrite actual framework files on the Mac during remote builds.

Changes:

  • Modified FilterStaticFrameworks and GetFullPaths MSBuild tasks to skip copying empty files from Windows to Mac
  • Added comprehensive test projects to verify the fix works correctly for binding projects with embedded frameworks
  • Updated bindings-framework-test project to allow NoBindingEmbedding property to be overridden for testing purposes

Reviewed changes

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

Show a summary per file
File Description
msbuild/Xamarin.MacDev.Tasks/Tasks/GetFullPaths.cs Added empty file check in ShouldCopyToBuildServer to prevent overwriting Mac files with empty Windows placeholders
msbuild/Xamarin.MacDev.Tasks/Tasks/FilterStaticFrameworks.cs Added empty file check in GetAdditionalItemsToBeCopied to skip copying empty framework files to Mac
tests/dotnet/UnitTests/WindowsTest.cs Added BuildEmbeddedFrameworkInBindingProjectApp test case to verify the fix works in remote build scenarios
tests/dotnet/BindingWithEmbeddedFramework/* New binding project with embedded framework for testing, created for iOS, macOS, tvOS, and MacCatalyst platforms
tests/dotnet/EmbeddedFrameworkInBindingProjectApp/* New test app that consumes the binding project to validate the complete scenario works end-to-end
tests/bindings-framework-test/dotnet/shared.csproj Made NoBindingEmbedding property conditional to allow override in test scenarios

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #1dbc548] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #1dbc548] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
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: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #1dbc548] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #1dbc548] Tests on macOS M1 - Mac Monterey (12) passed 💻

All tests on macOS M1 - Mac Monterey (12) passed.

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #1dbc548] Tests on macOS X64 - Mac Sonoma (14) passed 💻

All tests on macOS X64 - Mac Sonoma (14) passed.

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #1dbc548] Tests on macOS arm64 - Mac Sequoia (15) passed 💻

All tests on macOS arm64 - Mac Sequoia (15) passed.

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #1dbc548] Tests on macOS M1 - Mac Ventura (13) passed 💻

All tests on macOS M1 - Mac Ventura (13) passed.

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #1dbc548] Tests on macOS arm64 - Mac Tahoe (26) passed 💻

All tests on macOS arm64 - Mac Tahoe (26) passed.

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne enabled auto-merge (squash) January 23, 2026 07:44
@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🔥 [CI Build #1dbc548] Test results 🔥

Test results

❌ Tests failed on VSTS: test results

0 tests crashed, 1 tests failed, 112 tests passed.

Failures

❌ windows tests [attempt 4]

1 tests failed, 0 tests passed.
Details

Html Report (VSDrops) Download

Successes

✅ cecil: All 1 tests passed. Html Report (VSDrops) Download
✅ dotnettests (iOS): All 1 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ dotnettests (MacCatalyst): All 1 tests passed. [attempt 2] 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. [attempt 3] 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: All 44 tests passed. [attempt 2] Html Report (VSDrops) Download
✅ monotouch (iOS): All 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (tvOS): All 8 tests passed. Html Report (VSDrops) Download
✅ msbuild: All 2 tests passed. Html Report (VSDrops) Download
✅ xcframework: All 4 tests passed. Html Report (VSDrops) Download
✅ xtro: All 1 tests passed. Html Report (VSDrops) Download

Pipeline on Agent
Hash: 1dbc54830ac9cd6f77d9ba9a7608b8e309376148 [PR build]

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.

4 participants