.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.
After updating CommunityToolkit.MVVM from version 8.0.0 to 8.2.0, I encountered errors in both WPF .Net 7 and WinUI .Net 7 projects. These errors only appear in the Error List in Visual Studio, and I am still able to build the project without any issues. Additionally, I should note that these errors in Visual Studio are intermittent and not consistently reproducible.
Regression
8.0.0
Steps to reproduce
1. Create a WinUI Project (.NET 7)
2. Add CommunityToolkit.MVVM (8.0.0)
3. Add a property with the ObservableProperty attribute
4. Build the project
5. Update CommunityToolkit.MVVM to 8.2.0
Expected behavior
I expect Visual Studio to not show any errors in the Error List after updating the CommunityToolkit.MVVM package, while still being able to build the project successfully.
Duplicate of #493, which is then dependent on https://github.com/dotnet/roslyn/issues/67123.
Could you also try using VS 17.6 Preview 5 (or above)? There should be some bug fixes there that might help 🙂
Describe the bug
CS0103
After updating CommunityToolkit.MVVM from version 8.0.0 to 8.2.0, I encountered errors in both WPF .Net 7 and WinUI .Net 7 projects. These errors only appear in the Error List in Visual Studio, and I am still able to build the project without any issues. Additionally, I should note that these errors in Visual Studio are intermittent and not consistently reproducible.
Regression
8.0.0
Steps to reproduce
Expected behavior
I expect Visual Studio to not show any errors in the Error List after updating the CommunityToolkit.MVVM package, while still being able to build the project successfully.
Screenshots
IDE and version
VS 2022
IDE version
17.5.4
Nuget packages
Nuget package version(s)
8.2.0
Additional context
No response
Help us help you
No, just wanted to report this