Information générale
Catégorie:
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....
OKay... Thanks.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement