CommunityToolkit icon indicating copy to clipboard operation
CommunityToolkit copied to clipboard

ObservableObject attribute doesn't work after update to Visual Studio

Open JNickVA1 opened this issue 1 year ago • 2 comments

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

  • ID: baa399f1-fe73-add4-df84-b99a29fb4083
  • Service: dotnet-communitytoolkit
  • Sub-service: mvvm-toolkit

JNickVA1 avatar Feb 26 '24 15:02 JNickVA1

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

bijington avatar Feb 26 '24 18:02 bijington

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.

JNickVA1 avatar Feb 29 '24 15:02 JNickVA1