[Mono-list] Re: batch compiling on windows

Robert Jordan robertj at gmx.net
Sun Dec 25 12:57:29 EST 2005

Santi Serrano wrote:
> Hi,
> I have the following problem under Windows XP with Mono installed:
> When I make a ".bat" file with some "mcs" commands only the first one is 
> executed. It's like everything after the mcs commands it's ignored.
> ex: "build.bat"
> ------------------------------------------
> mcs -r:System.Windows.Forms simple.cs
> pause
> ------------------------------------------
> the pause command is never executed
> any ideas?

If I can recall: mcs is a bat-file, so you have to call it using
the "call" built-in, otherwise the current bat-file will be terminated:

call mcs -r:System.Windows.Forms simple.cs


More information about the Mono-list mailing list