dotnet
dotnet copied to clipboard
Property not found error in XAML
Describe the bug
The famous 8.x bug of the invalid property during editing now (8.2.1) seems to be present only for RelayCommand:
As you can see, other VM.XXX attributes are ok. No underlined errors neither in cs file.
So we should be almost there with the final fix...
Regression
No response
Steps to reproduce
Random, working on a MVVM dialog...
Expected behavior
No underlines in source, if code is correctly built.
Screenshots
No response
IDE and version
VS 2022
IDE version
17.6.4
Nuget packages
- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [X] CommunityToolkit.Mvvm (aka MVVM Toolkit)
Nuget package version(s)
8.2.1
Additional context
No response
Help us help you
No, just wanted to report this
I had the same. Deleting bin and obj and running a clean / rebuild would often fix it. for a few minutes. then after i edit or add a new relaycommand it would break again. It would build but intellisense would be confused. and sometimes it wouldnt build even if i didnt change anything. going all the way back to 8.0.0 for mvvm toolkit seems to work so far. looks like its a vs thing? https://github.com/dotnet/roslyn/issues/67123