How to reference System.Windows.Forms in .NET Core 3.0 for WPF apps?

You need to add to csproj an additional switch:

<UseWindowsForms>true</UseWindowsForms>

Add it below UseWpf. Then try rebuild. After this, you should be able to use Forms namespace.

Leave a Comment