'The type forwarder for type 'System.ComponentModel.INotifyPropertyChanging' in assembly 'System' causes a cycle

I am working on upgrading WPF application which is built using .Net Framework 4.6 to .Net 6. While upgrading a few assemblies, I encountered this strange issue -

The type forwarder for type 'System.ComponentModel.INotifyPropertyChanging' in assembly 'System' causes a cycle

I have tried searching various forms but unable to find the root cause. Can anyone suggest what should be the issue?



Solution 1:[1]

The error was coming since the DLL were not compiling. I commented the code in Views and ensure that there are no errors in .cs files. Once it started compiling, the above error went away.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Channa