I made a console application with the VS Code C# extension. I need a couple of classes from System.Windows.Forms
, like Screen
and Cursor
. While I can access System.Windows.Forms
itself, the classes in question aren't there. Are there some other references I need to add?
This is what my csproj file looks like:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0-windows</TargetFramework>
<UseWindowsForms>true</UseWindowsForms>
</PropertyGroup>
</Project>