Skip to content

Conversation

@rolfbjarne
Copy link
Member

Pass the XamarinTask instance along when calling
CompressionHelper.TryCompress, so that TryCompress can use the instance
ExecuteAsync method on XamarinTask.

This is required for a future change, where the instance
XamarinTask.ExecuteAsync method will set the environment to use the
current/correct version of Xcode.

…nHelper.TryCompress.

Pass the XamarinTask instance along when calling
CompressionHelper.TryCompress, so that TryCompress can use the instance
ExecuteAsync method on XamarinTask.

This is required for a future change, where the instance
XamarinTask.ExecuteAsync method will set the environment to use the
current/correct version of Xcode.
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 refactors the compression/decompression helper methods to accept a XamarinTask instance instead of just a TaskLoggingHelper, enabling future changes where the task's ExecuteAsync method will set the correct Xcode environment. The refactoring is systematic and consistent across all affected files.

Key Changes:

  • Modified CompressionHelper.TryCompress and CompressionHelper.TryDecompress to accept XamarinTask task parameter instead of TaskLoggingHelper log
  • Updated XamarinTask.ExecuteAsync to include an optional CancellationToken parameter
  • Updated all call sites across multiple task classes to pass the task instance (this)

Reviewed changes

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

Show a summary per file
File Description
msbuild/Xamarin.MacDev.Tasks/Tasks/XamarinTask.cs Added CancellationToken? parameter to the instance ExecuteAsync method to support cancellation in compression operations
msbuild/Xamarin.MacDev.Tasks/Decompress.cs Updated TryCompress and TryDecompress methods to accept XamarinTask instead of TaskLoggingHelper, allowing access to the task's ExecuteAsync method; updated internal helper methods accordingly
msbuild/Xamarin.MacDev.Tasks/Tasks/Zip.cs Updated call to CompressionHelper.TryCompress to pass this instead of Log
msbuild/Xamarin.MacDev.Tasks/Tasks/Unzip.cs Updated call to CompressionHelper.TryDecompress to pass this instead of Log
msbuild/Xamarin.MacDev.Tasks/Tasks/ResolveNativeReferences.cs Updated multiple calls to CompressionHelper.TryDecompress and TryResolveXCFramework to pass this instead of Log; updated TryResolveXCFramework signature to accept XamarinTask
msbuild/Xamarin.MacDev.Tasks/Tasks/CreateBindingResourcePackage.cs Updated call to CompressionHelper.TryCompress to pass this instead of Log

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #0b53660] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #0b53660] Build passed (Detect API changes) ✅

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

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #0b53660] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

🚀 [CI Build #0b53660] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 120 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 9 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 11 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 12 tests passed. [attempt 2] 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: 0b536607e842b2df2304ad0ca50816e8679932c4 [PR build]

@rolfbjarne rolfbjarne merged commit 6ff086f into main Dec 15, 2025
45 checks passed
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.

6 participants