Repository navigation
Move MarshalMethodsAssemblyRewriter warning into resources - #12330
Conversation
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Moves a customer-facing MarshalMethodsAssemblyRewriter warning string into Properties.Resources so the message can be localized while preserving the existing non-coded LogWarning behavior.
Changes:
- Replaces the hardcoded warning in
MarshalMethodsAssemblyRewriterwith astring.Formatcall usingProperties.Resources. - Adds the warning text to the English
Resources.resx. - Adds the corresponding strongly-typed resource accessor to
Resources.Designer.cs.
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Xamarin.Android.Build.Tasks/Utilities/MarshalMethodsAssemblyRewriter.cs | Switches warning emission to a localized resource-based format string. |
| src/Xamarin.Android.Build.Tasks/Properties/Resources.resx | Adds MarshalMethodsAssemblyRewriterUnableToDeleteSourceFile with unchanged warning text. |
| src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs | Adds the generated-style property for the new resource key. |
Files not reviewed (1)
- src/Xamarin.Android.Build.Tasks/Properties/Resources.Designer.cs: Generated file
π‘ Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
|
@copilot there is an error: |
Co-authored-by: jonathanpeppers <840039+jonathanpeppers@users.noreply.github.com>
... Fixed in beae5a1. |
|
@dalexsoto review |
dalexsoto
left a comment
There was a problem hiding this comment.
Reviewed the current changes. The resource, designer property, and call-site wiring preserve the warning text, argument order, and warning severity. No blocking issues found.
MarshalMethodsAssemblyRewriteremitted a hardcoded customer-facing warning when source-file deletion failed, preventing localization.Resources.resx.LogWarningbehavior and adjacent exception diagnostics.