maui: XamlC error XFC0045 with maui dotnet 9 preview 3
Description
If you use compiled bindings and you use x:Reference Bindings they don’t work with dotnet 9 preview 3. It works fine with dotnet 9 preview 2 and dotnet 8.
Steps to Reproduce
- Clone the repo
- Install dotnet 9 preview 3
- dotnet workload restore
- dotnet build -> you will get the error
Link to public reproduction project repository
https://github.com/rogerbriggen/mauidotnet9pre3_collectionview
Version with bug
9.0.0-preview.3.10457
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
9.0.0-preview.2.10293
Affected platforms
Android, Windows
Affected platform versions
No response
Did you find any workaround?
No
Relevant log output
C:\temp\mauidotnet9pre3_collectionview-master>dotnet build
Wiederherstellung abgeschlossen (2.0s)
Sie verwenden eine Vorschauversion von .NET. Weitere Informationen: https://aka.ms/dotnet-support-policy
mauidotnet9pre3_collectionview net9.0-windows10.0.19041.0 failed with 1 error(s) (9.7s)
MainPage.xaml(16,17): XamlC error XFC0045: Binding: Property "SelectedItem" not found on "mauidotnet9pre3_collectionview.MainPageViewModel".
mauidotnet9pre3_collectionview net9.0-android failed with 1 error(s) (13.1s)
MainPage.xaml(16,17): XamlC error XFC0045: Binding: Property "SelectedItem" not found on "mauidotnet9pre3_collectionview.MainPageViewModel".
Erstellen von failed with 2 error(s) in 15.4s
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 2
- Comments: 20 (14 by maintainers)
FYI, the XLS error in the editor has been fixed (see VS Code Issue #1131).
@StephaneDelcroix would know most about the XFC error.
Xamarin and MAUI never cease to surprise me on what they allow that other platforms like WPF and UWP/WinUI don’t. I had no idea this was allowed to be used that way.
Hi I’m an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Closed similar issues: