"Andrew Ducker" <an****@ducker.org.uk> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I've got a C# project that automatically kicks off NUnit whenever I do
a build. I want to change this so that it only does so when I've got
the Configuration set to NUnit.
Is there any way to either set up the post-build event to be
conditional, or have it be dynamic?
The way I do it, is in the project settings for your DLL, and with your
NUnit configuration selected, set the Debug Mode to 'Program', then set the
Start Application to 'NUnit-GUI'. You can specifiy command line arguments
separately to load the correct assembly and run it automagically.
If you really want to do it from a post build step, there is a
ConfigurationName macro, can you not use that with the standard bat file IF
conditional?
--
Regards,
Tim Haughton
Agitek
http://agitek.co.uk http://blogitek.com/timhaughton