The type or namespace name Windows does not exist in the namespace System

After switching my Build settings to target the Windows desktop, I suddenly get the following error

 The type or namespace name Windows does not exist in the namespace System. Are you missing an assembly reference?

The offending line is

using System.Windows.Forms;

I am publishing from the Mac. Does this mean I can only publish this project from Windows?

Well considering that unity does not include the System.Windows dll, the only way you could reference the WinForms library is if you included the dll in your project as a plugin.

No matter the build settings this should occur.

If you did add said dll though… not sure why you’d be getting that error.

Why do you need that namespace anyways? Are you using WinForms for something?

Standalone File Browser utility