> > 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 > > <csc> task? > > > > Thanks, > > Mike. > 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. > > Ian >
csc supports a /main: switch allowing you to state which type(containing a Main) should be used as an entry point: /main:<type> Specifies the type that contains the entry point (ignore all other possible entry points) (Short form: /m) VS.NET also lets you do this. -- Arild ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users