How can we use classes like Screen in a .NET Core 3.0 WPF project? There are documentation pages for .NET Core 3.0 for them, so I assumed it should work.
VS and the
You should add <UseWindowsForms>true</UseWindowsForms> in your csproj.
<UseWindowsForms>true</UseWindowsForms>
<PropertyGroup> <OutputType>WinExe</OutputType> <TargetFramework>netcoreapp3.0</TargetFramework> <UseWpf>true</UseWpf> <UseWindowsForms>true</UseWindowsForms> </PropertyGroup>