-
Notifications
You must be signed in to change notification settings - Fork 549
[xma] Added targets and tasks to copy modified dll and pdb files back to Windows #22677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
… 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
… files update logic
|
This comment has been minimized.
This comment has been minimized.
✅ [CI Build #45b11cb] Build passed (Build packages) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
✅ [PR Build #45b11cb] Build passed (Detect API changes) ✅Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ API diff for current PR / commit.NET ( No breaking changes )✅ API diff vs stable.NET ( No breaking changes )✅ Generator diffGenerator diff is empty Pipeline on Agent |
✅ [CI Build #45b11cb] Build passed (Build macOS tests) ✅Pipeline on Agent |
💻 [CI Build #45b11cb] Tests on macOS X64 - Mac Sonoma (14) passed 💻✅ All tests on macOS X64 - Mac Sonoma (14) passed. Pipeline on Agent |
💻 [CI Build #45b11cb] Tests on macOS arm64 - Mac Sequoia (15) passed 💻✅ All tests on macOS arm64 - Mac Sequoia (15) passed. Pipeline on Agent |
💻 [CI Build #45b11cb] Tests on macOS M1 - Mac Ventura (13) passed 💻✅ All tests on macOS M1 - Mac Ventura (13) passed. Pipeline on Agent |
💻 [CI Build #45b11cb] Tests on macOS M1 - Mac Monterey (12) passed 💻✅ All tests on macOS M1 - Mac Monterey (12) passed. Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🚀 [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 Pipeline on Agent |
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