Linker error in InputNumber #111160
Labels
area-Tools-ILLink
.NET linker development as well as trimming analyzers
untriaged
New issue has not been triaged by the area owner
Is there an existing issue for this?
Describe the bug
When bulding for release, the linker will sometimes remove the setter for the property "ParsingErrorMessage", resulting in an error stating that the "InputNumber"-component declares a property that is not public.
This can be "resolved" by adding the folloing method to Program.cs, forcing the linker to not remove the setter:
Expected Behavior
The linker should never remove this setter.
Steps To Reproduce
This is difficult, but it happens in our relase builds
Exceptions (if any)
InvalidOperationException, stating the the InputNumber component declares a parameter matching the name "ParsingErrorMessage" that is not public.
.NET Version
9
Anything else?
No response
The text was updated successfully, but these errors were encountered: