Re: [Nant-users] Compiling a class with multiple entry points

2003-02-13 Thread Ian MacLean
ok good point. Just add the paramater to your csc task then Ian csc supports a /main: switch allowing you to state which type(containing a Main) should be used as an entry point: /main:Specifies the type that contains the entry point (ignore all other possi

RE: [Nant-users] Compiling a class with multiple entry points

2003-02-13 Thread Arild Fines
> > Has anyone run into a problem building a class the has multiple entry > > points into it with nant? Is there a way to get around this with the > > task? > > > > Thanks, > > Mike. > This is the standard behaviour for the csc compiler and in fact for > every .net compiler. There can only be a si

Re: [Nant-users] Compiling a class with multiple entry points

2003-02-13 Thread Ian MacLean
This is the standard behaviour for the csc compiler and in fact for every .net compiler. There can only be a single static Main method in a given .exe assembly otherwise the runtime will not know which one to execute at startup. Remove or rename one of the Main methods and it will work fine. I