https://bugs.winehq.org/show_bug.cgi?id=52761
--- Comment #33 from Eric Pouech eric.pouech@orange.fr --- afaics in https://github.com/madewokherd/wine-mono/blob/develop/tools/csc-wrapper/csc-..., what happens is: caller (A) - csc_wrapper (new process) (B) - csc (or mcs)
the (B) call to CreateProcess uses the CREATE_NO_WINDOW flag which is not implemented in Wine
so if caller (A) creates csc_wrapper without a console (DETACHED_PROCESS), this will trigger the generation of a console when creating mcs process
normally, with the patchset sent earlier on to wine devel, support for CREATE_NO_WINDOW should be implemented, and this would work without changing what you've already changed