CommunityToolkit / dotnet

.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and part of the .NET Foundation.
https://docs.microsoft.com/dotnet/communitytoolkit/?WT.mc_id=dotnet-0000-bramin
Other
2.99k stars 294 forks source link

Property not found error in XAML #732

Open LucaCris opened 1 year ago

LucaCris commented 1 year ago

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:

Screenshot 2023-07-07 140948

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

Nuget package version(s)

8.2.1

Additional context

No response

Help us help you

No, just wanted to report this

Gekidoku commented 1 year ago

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