This option worked for me.
#I @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.7"
#r "System.Windows.Forms"
The first line #I specifies the directory path the search for the .dll, the #r specifies the .dll to reference.
This option worked for me.
#I @"C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App\3.1.7"
#r "System.Windows.Forms"
The first line #I specifies the directory path the search for the .dll, the #r specifies the .dll to reference.