CommunityToolkit / CommunityToolkit/dotnet

Source Generator for [ObservableProperty] doesn't work anymore since upgrading to visual studio 17.11.2.

Open
#940 9 comments 0 reactions 0 assignees View on GitHub
analyzer :eyeglasses: external :arrow_heading_up: mvvm-toolkit :toolbox: need more info :pushpin:
Dominant language
C#
Stars
3.8k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug

I'm using the CommunityToolkit.Mvvm version 8.2.2.

Since I updated Visual Studio 2022 to the latest version 17.11.2, I keep having problems when adding new properties using [ObservableProperty]. The source generator doesn't work automatically, and some keyboard keys (like backspace or delete) don't work anymore. I have to close and restart Visual Studio to be able to continue my work.

I don't know if this is a Visual Studio bug or a toolkit bug.

If this cannot be fixed quickly, I would like to know what the most recent version of Visual Studio where this still works.

### Regression

_No response_

### Steps to reproduce

```text
Update Visual Studio 2022 to version 17.11.2
```

### Expected behavior

The sourcegenerator should make the required code for [ObservableProperty] properties on the background without messing up the editor experience.

### Screenshots

![image](https://github.com/user-attachments/assets/151a8f9e-8a4d-43cb-95d6-7456e19b920e)

### IDE and version

VS 2022

### IDE version

Version 17.11.2

### Nuget packages

- [ ] CommunityToolkit.Common
- [ ] CommunityToolkit.Diagnostics
- [ ] CommunityToolkit.HighPerformance
- [X] CommunityToolkit.Mvvm (aka MVVM Toolkit)

### Nuget package version(s)

8.2.2

### Additional context

_No response_

### Help us help you

No, just wanted to report this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.