General information
Category:
The Mere Mortals .NET Framework
>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.)
You could wrap your test code in #if DEBUG...#endif so that it's omitted from the release version.
>Or, did I do something else wrong when I added NUnit as a reference to the project in the first place?
No. If you need to use it you have to add a reference - and if you add a reference the DLL will be copied the to bin folder....
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only