I am using a third-party nuget package in my WPF project, on .NET 5. When I am trying to call some code, I get such message:
Severity Code Description Project File Line Suppression State
Error CS0012 The type 'UserControl' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Forms, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
A third-party WPF library references Winforms Class named UserControl.
When I click on yellow-red icon to automatically resolve issue a Reference Manager window opens... I checked StackOverflow and did not find a similar situation. So, what do I do next? How do I add reference to Winforms library to WPF project on .NET 5?