Unable to resolve System.Windows.Forms.dll in .Net Core 3.1
问题 I have a scenario where we are using a legacy .Net Framework dll in .Net core 3.1 class library. Internally .Net Framework dll is using System.Windows.Forms.dll which .Net core is not able to resolve. I am getting below error message during runtime Could not load file or assembly 'System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified. In a ideal world there is no point in adding System.Windows.Forms.dll to a class