You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: XAML diagnostics false positives on valid markup #354
These valid constructs build and run but get diagnostics:
Case-variant values (Visibility="collapsed", Mode=oneway) are Errors (WXAML0012/WXAML0022/WXAML0025).
WMC1510 Native AOT warning on {Binding} in templates in projects without PublishAot/IsAotCompatible.
{x:Bind Ex.Tup.Item2} on a ValueTuple is flagged WXAML0005.
ToString(), Equals(), GetHashCode() on class-typed x:Bind receivers are flagged WXAML0011.
x:Name values with combining marks or letter-numbers (Café in NFD, aⅣ) are flagged WXAML0014.
To Reproduce
Add any of the snippets above to a page, e.g. <Button Visibility="collapsed"/>, <TextBlock Text="{x:Bind ViewModel.Selected.ToString()}"/>, or a DataTemplate with {Binding Name}.
Observe the diagnostic. dotnet build succeeds.
Expected behavior
No diagnostic for anything the XAML compiler accepts. WMC1510 only appears in AOT or trim-enabled projects.
Activity