maui
maui copied to clipboard
Android build compiles fine:Xaml Parser fails to understand the expression when placed wrongly and compiles in release
Description
The sample contains a parser mistake that runs the app in release mode for android. The binding fails expression was typed mistakenly and the binding expression is shown in UI rather than the stopping the compliation with error. The solution compiles in Release mode. I have seen this working in android.
The sample demostrates this with the help of collection but not sure this happens in other scenarios also.
Steps to Reproduce
<HorizontalStackLayout Spacing="25" Padding="30,0" VerticalOptions="Center"> <Label Text="{Binding Name}" SemanticProperties.HeadingLevel="Level1" FontSize="32" HorizontalOptions="Center" />
<Label Text="{Binding Location}">
Style="{StaticResource locationStyle}" >
</Label>
</HorizontalStackLayout>
This should have been an error but expressions runs in a release build and does create style/binding expression as text label.
Link to public reproduction project repository
https://github.com/liveinvarun/MauiRepo
Version with bug
7.0 Release Candidate 2
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 and up ios also
Did you find any workaround?
No
Relevant log output
The issue is noticed in android but not sure this may also fail in ios.
