[Mono-list] Does mcs have a switch for this?

Kunle Odutola kunle.odutola@virgin.net
Fri, 13 Sep 2002 19:46:00 +0100


> Hello,
>
> > Does mcs.exe have a switch that processes a bunch of files that
> make up a
> > project fully but doesn't generate any code?. Also, can we bundle the
> > unmodofied mcs.exe (and it's source) with a closed-source
> product we supply
> > to a few customers without licensing problems?
>
> I do not understand what you want the compiler to do, there is a flag to
> only tokenize or only parse, but that is not really a real compilation.

I want to run generated C# files through a C# compiler front-end to check
they are valid C# source. Some of the code in them is user-supplied so the
typechecking is needed. The files will be used by the system later and will
be compiled just-in-time to MSIL in the normal sense.

> Yes, you can ship an unmodified version of mcs.exe if you provide the
> source code to the recipient (and the same rights they got from you).

Thanks for the clarification.

Kunle