I see a strange build error. Sometimes after entering some code, we get the following build error.
Class 'clsX' must implement 'Event PropertyChanged(sender As Object, e As PropertyChangedEventArgs)' for interface System.ComponentModel.INotifyPropertyChanged'.
AND
'PropertyChanged' cannot implement 'PropertyChanged' because there is no matching event on interface 'System.ComponentModel.INotifyPropertyChanged'.
These errors should never be combined! Usually we can simply ignore the exception and build the solution, but quite often this error stops our assembly. (this happens very often using Edit and Continue, which is annoying)
We use Vb.net and C # in one big solution.
Removing the PropertyChanged event and re-typing the same code! sometimes corrects it.
Question:
Has anyone else seen this problem and has some recommendations on how to prevent it?
We use a code generator that causes this error, but just editing some files manually also raises this exception. This error occurs on multiple computers using various settings.
source share