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?