canton7 / PropertyChanged.SourceGenerator

Powerful INotifyPropertyChanged / INotifyPropertyChanging Source Generator, which generates INPC boilerplate for you as part of your build. Supports features such as automatic and manual dependencies between properties, notifications when specific properties change, and more.
MIT License
138 stars 14 forks source link

[BUG] freeze and crash visual studio #24

Closed Cologler closed 2 years ago

Cologler commented 2 years ago

Description

Keep crash visual studio if add such code:

To Reproduce

  1. Create an empty project, target to .Net 6.
  2. Paste code, visual studio should freeze, then crash:
using PropertyChanged.SourceGenerator;

namespace Test1;
partial record Class1(Class1 Class1)
{
    [Notify] string _value;
}

Version Info

canton7 commented 2 years ago

Good spot, thanks!

canton7 commented 2 years ago

This will be fixed in 1.0.6 shortly

Cologler commented 2 years ago

You are the fastest developer I have met.