-
|
Hello everyone, I have scoured Google in search of anyone experiencing the same problem, but I haven't found anything - so I'm making this discussion post to see if anyone has any ideas how to solve this problem or figure out more details before creating a full issue. Project SetupWPF Application targeting .NET 8 for Windows, using Visual Studio 2022. What WorksWhen referencing CommunityToolkit.Mvvm package at version 8.4.0 (or below), everything works as it should: Properties for fields have observable properties generated for them, etc. No issues while editing, builds work fine too. ProblemWhen updating the package to version 8.4.1 or 8.4.2, the source generator doesn't seem to be working properly anymore. Me and multiple other people across multiple projects are not getting the observable properties generated during editing. This means Visual Studio constantly complains about those being missing wherever they're used (hundreds to thousands of errors with a lot of files open) - but everything works perfectly fine when compiling. Curiously, the new versions are working fine for someone using Visual Studio 2026 - whether he's using that or Visual Studio 2022. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Are you able to share a minimal repro? |
Beta Was this translation helpful? Give feedback.


Sorry for the late reply, forgot that this was still open.
While your screenshot of the build output wasn't really useful, since that was always clean anyways, the SDK did seem to be the problem.
I deinstalled the 10.0.1xx version I had and installed 10.0.204 and with that it started working as it should. Testing with a colleague who had the same issue, installing 10.0.301 alone didn't help, we had to deinstall 10.0.109 too. Then it magically started working, even though 10.0.301 had already been what was showing up when running
dotnet --versionin the developer powershell in VS.