Look at the Continous Integration white paper on my web site. I show how to separate out the actual program source/projects from the test source/projects from inside your MSBuild script. Don't go with #IF. It's unnecessary and additional work for you.
>Hi,
>
>I wired up NUnit into my business objects project for testing at various stages. Now that I have come to deployment time, I notice that the deployed app won't run unless the NUnit assemblies are deployed with the application. And of course, I don't want to do that. What's the recommended way of handling this? Do I remove all testing code and references from the business objects project and recompile? (This does not make sense.) Or, did I do something else wrong when I added NUnit as a reference to the project in the first place?
>
>Guy
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer