When I try to debug the project all the test auto run. How I stop this
When I debug the project for viewing and fixing design issue than I see all the test are running as well. How I stop this 开发者_运维百科so that my tests don't run while working on my UI project?
If you have a Testing project (or any project for that matter) in your solution and you don't want it to start up, right-click on your solution in Solution Explorer and choose Properties. Click on
Common Properties->Startup Project. You'll probably see "Multiple startup projects" selected. If you choose "None" in the drop-down in the Action column for your test project(s), this should stop them from starting up when you debug your solution.
This is for VS2008 but 2005 and 2010 should be similar.
精彩评论