MicrosoftDocs / CommunityToolkit

The Official Docs for the Community Toolkits
https://learn.microsoft.com/dotnet/communitytoolkit
Creative Commons Attribution 4.0 International
113 stars 94 forks source link

ObservableObject attribute doesn't work after update to Visual Studio #379

Open JNickVA1 opened 8 months ago

JNickVA1 commented 8 months ago

Type of issue

Code doesn't work

Description

After I updated Visual Studio to Version 17.9.1, the ObservableObject attribute no longer seems to work. None of my properties that were accessible previously are available now in my xaml or in the same C# code where the properties are defined.

Page URL

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/generators/observableproperty?source=recommendations

Content source URL

https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/mvvm/generators/ObservableProperty.md

Document Version Independent Id

baa399f1-fe73-add4-df84-b99a29fb4083

Article author

@Sergio0694

Metadata

bijington commented 8 months ago

Have you tried doing a clean and rebuild. And if that doesn't work deleting the bin and obj folders and then rebuilding?

JNickVA1 commented 8 months ago

I have done a Clean and Build, deleted the bin and obj folders, and everything else I can think of. Apparently, I'm not the one developer having issues after updating Visual Studio to 17.9.1. Several others who also use the CommunityToolkit.Mvvm have experienced similar issues. The only recourse was to rollback to 17.8.5.