Skip to content

Conversation

@rolfbjarne
Copy link
Member

@rolfbjarne rolfbjarne commented Dec 30, 2024

This involved a few changes:

  • Add Windows support to the msbuild tasks to compress using System.IO.Compression (as opposed to the zip command line tool) on Windows. This is required in order to create binding resource packages on Windows.
  • Create the binding resource package on Windows instead of remotely on macOS for remote builds.
  • Resolve native references on Windows instead of on macOS for remote builds.
  • Generate bindings (run the generator) on Windows instead of on macOS for remote builds, with an opt-out to keep doing it remotely if needed.
  • Compute _SdkIsSimulator from the RuntimeIdentifier, this way it's available much earlier in the build process.
  • Run several additional tests on Windows.
  • Misc other test improvements/additions.

Fixes #16244.
Fixes #16611.

@rolfbjarne
Copy link
Member Author

/azp run xamarin-macios-pr,xamarin-macios-pr-apidiff

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@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.

@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
Copy link
Member Author

/azp run xamarin-macios-pr,xamarin-macios-pr-apidiff

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@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.

@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.

@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.

@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.

@vs-mobiletools-engineering-service2

This comment has been minimized.

@rolfbjarne rolfbjarne marked this pull request as ready for review March 18, 2025 15:24
@rolfbjarne rolfbjarne requested review from emaf and mauroa as code owners March 18, 2025 15:24
Condition="'$(IsBindingProject)' == 'true' And '$(DesignTimeBuild)' != 'true'">
Condition="'$(IsBindingProject)' == 'true'">

<Warning Condition="'$(IsMacEnabled)' != 'true'" Text="It's currently not supported to build a binding project from Windows unless a connection to a Mac is available." />
Copy link
Contributor

Choose a reason for hiding this comment

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

Design time builds will always be executed "offline" as we don't pass any connection parameters from VS for those. We do this because designtime builds must be fast.

So I think we need to ensure 2 things:
1- We don't require remote builds during designtime builds.
2- We should not make the designtime build fail if the objc binding project cannot be processed entirely on Windows.

Copy link
Member Author

Choose a reason for hiding this comment

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

I re-instated the existing logic for design-time builds (not doing design-time builds for binding projects), we can do that in a separate PR later on.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #2b8dc11] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #2b8dc11] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #2b8dc11] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ API diff for current PR / commit

.NET ( No breaking changes )

❗ API diff vs stable (Breaking changes)

.NET ( ❗ Breaking changes ❗ )

ℹ️ Generator diff

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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

💻 [CI Build #2b8dc11] Windows Integration Tests passed 💻

All Windows Integration Tests passed.

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@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 #2b8dc11] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 117 tests passed 🎉

Tests counts

✅ 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: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 10 tests passed. [attempt 4] 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
✅ 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

Pipeline on Agent
Hash: 2b8dc11fef8b252e8e423e40fe2643d95ffbf8ea [PR build]

@rolfbjarne rolfbjarne added the do-not-merge Do not merge this pull request label Mar 19, 2025
@rolfbjarne
Copy link
Member Author

do-not-merge until we've released Xcode 16.3 support, so that we don't add too many potentially disruptive features in our Xcode 16.3 release.

Copy link
Member

@dalexsoto dalexsoto left a comment

Choose a reason for hiding this comment

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

@rolfbjarne Agreed on keeping this one on hold until Xcode 16.3 is out, should we put it back as a draft for now?

@rolfbjarne rolfbjarne marked this pull request as draft March 28, 2025 13:38
@rolfbjarne rolfbjarne marked this pull request as ready for review April 2, 2025 12:40
@rolfbjarne rolfbjarne merged commit 4561f08 into main Apr 2, 2025
47 checks passed
@rolfbjarne rolfbjarne deleted the dev/rolf/build-binding-projects-on-windows branch April 2, 2025 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Do not merge this pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make bgen work from Windows Can't build binding projects without a Mac connection

5 participants