|
From: Mike M. <mik...@gm...> - 2006-03-02 20:06:03
|
(apologies if you get this twice, gmail seemed to, *gasp*, get stuck first time around) I'm trying to compile NMock 2 for both .NET 1.1 and 2.0. When compiling for 2.0 I want to include a few bits of code that add generics to Mockery, making it easier to obtain mocks. At the moment we're using the <solution> nant task to compile the code. If = I look at the <csc> task, I can add a "define" attribute to define conditiona= l compilation symbols. Trouble is I'm about to have to write a bunch of different <csc> fragments for compiling the code, the unit tests, and the acceptance tests. Seems like a lot of overhead when the <solution> task is almost doing what I want. So the question is, when building a solution, can I somehow add a conditional compilation symbol, similar to using the compiler direct? Cheers, Mike. |