Repository navigation
[release/11.0.1xx-rc.2] [msbuild] Add extra arguments for ibtool and actool. Fixes #25677. - #26714
Conversation
Add ACToolExtraArgs and IBToolExtraArgs properties, parse and forward their values to the corresponding Xcode tools, and invalidate incremental resource caches when they change. Document the new properties and cover argument parsing. Fixes #25677 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Follow the MSBuild task nullability convention for optional inputs and snapshot the property before parsing so netstandard flow analysis can prove it is non-null. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Include the extra-arguments stamp in IBTool's per-resource freshness check so changing IBToolExtraArgs recompiles interface definitions instead of retaining outputs produced with the previous arguments. Add focused timestamp coverage for the regression. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Run the IBTool and ACTool extra-argument stamp writers through the remote build session and copy the files back to Windows so both remote task execution and local incremental checks observe the same inputs. Improve invalid-argument diagnostics to name the public MSBuild property and add focused ACTool coverage. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Build an asset-catalog project incrementally, change only ACToolExtraArgs, and verify that the image asset compilation target runs again and rewrites Assets.car. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Move the ibtool and actool extra-argument parse diagnostic into the shared MSBuild resource catalog so the message can be localized while preserving the public property name in the error. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Improve parse-error diagnostics and add end-to-end command-line assembly coverage.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
Adds ACToolExtraArgs and IBToolExtraArgs MSBuild properties for forwarding parsed arguments to actool and ibtool, with incremental-build tracking, tests, and documentation.
Changes:
- Adds quoted-argument parsing and validation.
- Tracks argument changes for incremental rebuilds.
- Adds localized diagnostics, tests, and documentation.
| File | Reviewed changes |
|---|---|
tests/msbuild/Xamarin.MacDev.Tasks.Tests/TaskTests/IBToolTaskTests.cs |
Tests IBTool argument parsing and invalidation. |
tests/msbuild/Xamarin.MacDev.Tasks.Tests/TaskTests/ACToolTaskTest.cs |
Tests ACTool argument parsing and errors. |
tests/dotnet/UnitTests/AssetsTest.cs |
Tests incremental ACTool rebuilding. |
msbuild/Xamarin.Shared/Xamarin.Shared.targets |
Wires properties and incremental inputs. |
msbuild/Xamarin.MacDev.Tasks/Tasks/XcodeCompilerToolTask.cs |
Parses and appends extra tool arguments. |
msbuild/Xamarin.MacDev.Tasks/Tasks/IBTool.cs |
Tracks IBTool argument changes. |
msbuild/Xamarin.Localization.MSBuild/MSBStrings.resx |
Adds the localized parsing error. |
docs/building-apps/build-properties.md |
Documents both properties. |
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.
|
…release/11.0.1xx-rc.2-2026-09-24
✅ API diff for current PR / commitNET (empty diffs)✅ API diff vs stableNET (empty diffs)ℹ️ Generator diffGenerator Diff: vsdrops (html) vsdrops (raw diff) gist (raw diff) - Please review changes) Pipeline on Agent |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
🚀 [CI Build #dd78c58] Test results 🚀Test results✅ All tests passed on VSTS: test results. 🎉 All 269 tests passed 🎉 Tests counts✅ assembly-processing: All 1 tests passed. Html Report (VSDrops) Download macOS tests✅ Tests on macOS Sonoma (14): All 5 tests passed. Html Report (VSDrops) Download Linux Build VerificationPipeline on Agent |

Add
ACToolExtraArgsandIBToolExtraArgsMSBuild properties so applications can pass additional command-line arguments toactoolandibtool. This enables scenarios such as opting out of Xcode 27's toolchain-based Interface Builder compilation mode.Parse quoted arguments through the existing
StringUtilshelper and report invalid values as MSBuild errors. Track each property's value as an incremental-build input so changing additional arguments recompiles the affected resources instead of reusing stale outputs.Document both properties and add focused coverage for quoted and invalid argument values.
Fixes #25677.
🤖 Pull request created by Copilot
Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com
Backport of #26641.