Closed mikeKuester closed 1 year ago
@333fred this seems like it could just be an issue in the ExtractInterfaceCodeRefactoringProvider
and not actually a bug in the MVVM Toolkit? Should we create a tracking issue for this in the Roslyn repo and just link back to this here? 🤔
Yup, this is a roslyn bug.
Should I enter it as a new issue in dotnet/roslyn?
Yes
I reported this to dotnet/roslyn, so this issue can be closed.
Describe the bug
After adding the ObservableProperty attribute, the refactoring action "Extract Interface" throws an exception in Visual Studio 2022.
Steps to reproduce
Environment:
Steps:
Visual studio show the following error:
Expected behavior
The interface should be extracted from the class.
If I use this code - just with a public property with out using the ObservableProperty attribute, the interface could be extracted.
Screenshots
IDE and version
VS 2022
IDE version
17.6.4
Nuget packages
Nuget package version(s)
8.2.0
Help us help you
No, just wanted to report this