Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deployment - NUnit Problem
Message
De
12/07/2010 11:03:24
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
 
 
À
12/07/2010 10:58:36
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01472230
Message ID:
01472235
Vues:
36
>>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
Fil
Voir

Click here to load this message in the networking platform