문제

I'm hopefully going to be deploying an application soon, and I find it strange that I would have to include nunit.framework.dll. After all, the user is not going to need to run unit tests! So the only thing I can think of is that there is some way of configuring my solution for Debug and Release, such that Debug references NUnit, while Release does not. I've never seen anything like this before in VS200anything. What is everyone else here doing to preclude the need to deploy the NUnit framework along with your apps?

도움이 되었습니까?

해결책

Typically you would create two projects: the "main" project to be released, and a separate project containing only unit tests. That way, you don't distribute your tests in any way.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top