Skip to content

Conversation

@rolfbjarne
Copy link
Member

Also the ComputeRemoteGeneratorProperties task needs to know the value of
UseFloatingTargetPlatformVersion, so that it can be passed on when executing
dotnet to compute binding variables, because otherwise we might end up with
variables from the wrong workload.

…est projects, to avoid building them with other workloads than the current workload.
… value of UseFloatingTargetPlatformVersion.

So that it can be passed on when executing `dotnet` to compute binding
variables, because otherwise we might end up with variables from the wrong
workload.
@rolfbjarne rolfbjarne requested a review from Copilot November 18, 2025 12:41
Copilot finished reviewing on behalf of rolfbjarne November 18, 2025 12:43
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 PR ensures that test projects build with the correct workload by setting UseFloatingTargetPlatformVersion=true. This prevents tests from inadvertently building with other workloads than the current one.

  • Centralized UseFloatingTargetPlatformVersion=true in GetDefaultProperties() method to apply to all test builds
  • Updated all test methods to use GetDefaultProperties() instead of manually creating property dictionaries
  • Added UseFloatingTargetPlatformVersion parameter to ComputeRemoteGeneratorProperties task to propagate the property when computing binding variables
  • Set default value in shared-dotnet.csproj for all test projects

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/dotnet/UnitTests/TestBaseClass.cs Added UseFloatingTargetPlatformVersion=true to GetDefaultProperties() method
tests/dotnet/UnitTests/XcodeProjectTests.cs Updated all test methods to use GetDefaultProperties() instead of manual property dictionaries
tests/dotnet/UnitTests/TemplateTest.cs Updated template test methods to use GetDefaultProperties()
tests/dotnet/UnitTests/ProjectTest.cs Added exception for BuildMyClassLibrary test which explicitly verifies workload behavior
tests/common/shared-dotnet.csproj Set default UseFloatingTargetPlatformVersion=true for all test projects
msbuild/Xamarin.Shared/Xamarin.Shared.targets Passed UseFloatingTargetPlatformVersion parameter to ComputeRemoteGeneratorProperties task
msbuild/Xamarin.MacDev.Tasks/Tasks/ComputeRemoteGeneratorProperties.cs Added UseFloatingTargetPlatformVersion property and passed it as MSBuild argument when computing properties

@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 November 18, 2025 19:10
@rolfbjarne rolfbjarne enabled auto-merge (squash) November 18, 2025 19:11
@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
Copy link
Collaborator

✅ [PR Build #92caf02] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [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: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@rolfbjarne rolfbjarne disabled auto-merge November 21, 2025 07:52
@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #92caf02] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #92caf02] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #92caf02] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 119 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 6 tests passed. Html Report (VSDrops) Download
✅ linker: All 44 tests passed. Html Report (VSDrops) Download
✅ monotouch (iOS): All 9 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 9 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: 92caf02aa5efa0d523a0f1d5dfc86b945a3994f9 [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.

5 participants