Skip to content

Conversation

@mauroa
Copy link
Contributor

@mauroa mauroa commented Apr 25, 2025

With the new ICorDebug engine for MAUI, we need the debugger to always load the assemblies from Windows. Given that some dll and pdb files changes as part of the remote build, we need a mechanism to copy those modified files back to the Windows OutputPath, so the debugger can always load the right files. Otherwise, the debugger will try to load files that are not the same that are in the running app, so no symbols will be loaded. This also improves the debugger performance by ensuring the files are not loaded remotely but locally

@mauroa mauroa added the not-notes-worthy Ignore for release notes label Apr 25, 2025
@mauroa mauroa self-assigned this Apr 25, 2025
@mauroa mauroa requested review from emaf and rolfbjarne as code owners April 25, 2025 01:52
@mauroa mauroa requested review from Copilot, emaf and rolfbjarne and removed request for Copilot, emaf and rolfbjarne April 25, 2025 01:52
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 adds targets and tasks to ensure that modified dll and pdb files from remote builds are copied back to the Windows output directory so the debugger loads the correct assemblies and symbols.

  • Updated the Windows unit tests to verify that updated output files (assemblies report and changed output files zip) are generated and correctly extracted.
  • Modified the Zip task to avoid copying inputs or creating empty output files on Windows.
  • Introduced two new tasks, CalculateAssembliesReport and AnalyzeFileChanges, to generate an assemblies report and determine which files have changed.

Reviewed Changes

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

File Description
tests/dotnet/UnitTests/WindowsTest.cs Updated test logic to assert the existence of new output files and to validate file changes.
msbuild/Xamarin.MacDev.Tasks/Tasks/Zip.cs Modified the Zip task to prevent copying inputs and creating empty output files on Windows.
msbuild/Xamarin.MacDev.Tasks/Tasks/CalculateAssembliesReport.cs Added a new task to generate an assemblies report file based on file metadata.
msbuild/Xamarin.MacDev.Tasks/Tasks/AnalyzeFileChanges.cs Added a new task to analyze file changes by comparing file length and MVID information.
Files not reviewed (2)
  • msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Common.After.targets: Language not supported
  • msbuild/Xamarin.iOS.Tasks.Windows/Xamarin.iOS.Windows.After.targets: Language not supported

@github-actions
Copy link
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

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

@github-actions
Copy link
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

mauroa added 2 commits April 28, 2025 10:49
… to Windows

With the new ICorDebug engine for MAUI, we need the debugger to always load the assemblies from Windows.
Given that some dll and pdb files changes as part of the remote build, we need a mechanism to copy those modified files back to the Windows OutputPath, so the debugger can always load the right files.
Otherwise, the debugger will try to load files that are not the same that are in the running app, so no symbols will be loaded.
This also improves the debugger performance by ensuring the files are not loaded remotely but locally
@github-actions
Copy link
Contributor

⚠️ Your code has been reformatted. ⚠️

If this is not desired, add the actions-disable-autoformat label, and revert the reformatting commit.

If files unrelated to your change were modified, try reverting the reformatting commit + merging with the target branch (and push those changes).

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #45b11cb] Build passed (Build packages) ✅

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2

This comment has been minimized.

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [PR Build #45b11cb] Build passed (Detect API changes) ✅

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@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

✅ API diff for current PR / commit

.NET ( No breaking changes )

✅ API diff vs stable

.NET ( No breaking changes )

✅ Generator diff

Generator diff is empty

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

✅ [CI Build #45b11cb] Build passed (Build macOS tests) ✅

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@vs-mobiletools-engineering-service2
Copy link
Collaborator

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

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

Pipeline on Agent
Hash: 45b11cb3e2135101edf378fe9fc226df78e5c263 [PR build]

@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

🚀 [CI Build #477104c] Test results 🚀

Test results

✅ All tests passed on VSTS: test results.

🎉 All 121 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 8 tests passed. Html Report (VSDrops) Download
✅ monotouch (MacCatalyst): All 15 tests passed. Html Report (VSDrops) Download
✅ monotouch (macOS): All 9 tests passed. [attempt 3] 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: 477104c7920730c0c891390a20a8bd214b8472ee [PR build]

@rolfbjarne rolfbjarne merged commit a0f9144 into main Apr 29, 2025
40 checks passed
@rolfbjarne rolfbjarne deleted the dev/maagno/main branch April 29, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

not-notes-worthy Ignore for release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants