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 c
I got the resolution, we can achieve this by framework reference.
<FrameworkReference Include="Microsoft.WindowsDesktop.App" />
For more details please refer https://natemcmaster.com/blog/2019/01/09/netcore-primitives-3/