Repository navigation
[build] Remove unused diagnostic resources - #13407
Merged
simonrozsival merged 3 commits intoNov 6, 2026
Merged
simonrozsival merged 3 commits into
simonrozsival merged 3 commits into
Conversation
…ages Keep diagnostic codes and failure behavior, preserve user-facing resources, and synchronize accessors, historical documentation, and regression coverage. Co-authored-by: Copilot App <[email protected]>
Remove unnecessary test additions and repeated localization documentation. Use interpolation for non-localized messages and keep retired-code entries concise. Co-authored-by: Copilot App <[email protected]>
Restore all active localized resources and diagnostic call sites. Keep only the 36 verified orphan removals and matching retired-code documentation. Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the unused diagnostic resource cleanup.
No open issues 🎉
1 file not reviewed
src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs: Generated file
What changed in this PR
Removes unused diagnostic resources from the .NET for Android build tasks to reduce localization maintenance. This addresses the orphaned-resource portion of #13196; active messages remain localized.
Changes:
- Removes 36 unused resource entries and their matching generated accessors.
- Marks retired diagnostics in the documentation while preserving historical pages.
- Leaves product logic, build targets, and tests unchanged.
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Properties/Resources.resx | Removes 36 unused diagnostic resources. |
| src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs | Removes the matching generated accessors. |
| Documentation/docs-mobile/messages/xa5301.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4324.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4308.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4307.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4264.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4253.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4243.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4231.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4227.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4217.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa4214.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa2024.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa0139.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa0125.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa0122.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/xa0105.md | Adds a retirement notice; preserves historical guidance. |
| Documentation/docs-mobile/messages/index.md | Marks corresponding diagnostic entries as no longer emitted. |
Review effort: Balanced
simonrozsival
approved these changes
Nov 6, 2026
simonrozsival
enabled auto-merge (squash)
November 6, 2026 11:48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove 36 unused diagnostic resource entries and their generated accessors to reduce unnecessary localization maintenance. Mark the corresponding retired diagnostics in the documentation while retaining historical pages.
All active messages remain localized. There are no product-code, target, or test changes. This addresses only the orphaned-resource portion of the issue.
Relates to #13196
Validation:
./dotnet-local.sh build src/Xamarin.Android.Build.Tasks/Xamarin.Android.Build.Tasks.csproj --no-restore -v minimal- passed, 0 errors../dotnet-local.sh test src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/Xamarin.Android.Build.Tests.csproj --no-restore -v minimal --filter 'FullyQualifiedName~CopyResourceTests|FullyQualifiedName~R8Tests'- passed, 34 tests../dotnet-local.sh test src/Microsoft.Android.Build.Tasks/Tests/Microsoft.Android.Build.Tasks.Tests/Microsoft.Android.Build.Tasks.Tests.csproj -v minimal --filter 'FullyQualifiedName~GenerateR8JniRemappingTests|FullyQualifiedName~GenerateTypeMapProguardConfigurationTests|FullyQualifiedName~ExtractTypeMapKeysFrom|FullyQualifiedName~GenerateTrimmableTypeMapTests|FullyQualifiedName~WrapAssemblyStoresAsSharedLibrariesTests|FullyQualifiedName~GenerateNativeApplicationConfigSourcesTests|FullyQualifiedName~GenerateJniRemappingBinaryBlobsTests|FullyQualifiedName~NativeAotDataObject|FullyQualifiedName~CompressAssembliesTests'- passed, 421 tests.Full SDK setup was attempted with
make prepare && make allandmake leeroy. Compilation succeeded, but both failed during workload setup because API 37Mono.Android.xmlwas missing.