问题描述
这应该很容易.我只是不知道要搜索什么...
This one should be easy. I just can't figure out what to search for...
对于这个解决方案,我创建了一个单元测试项目,并且一直在疯狂地添加单元测试.当我在通过所有单元测试后返回尝试运行原始项目时,我意识到我无法弄清楚如何调试原始项目.
For this one solution I created a unit test project, and I've been adding unit tests frantically. When I went back to try to run the original project after making all the unit tests pass I realized that I couldn't figure out how to debug the original project.
换句话说,每次我尝试调试"(例如,按 F5)时,Visual Studio 都会运行单元测试.所以问题是我如何在一个解决方案中运行各种项目?如何选择在我想要的时候运行哪一个?
In other words, every time I try to "debug" (e.g., by pressing F5), Visual Studio will run the unit tests. So the question is how do I run various projects in a single solution? How do I select which one will run when I want it to?
推荐答案
你可以右键项目,选择设置为启动项目
这篇关于选择要在 Visual Studio 2010 中调试或运行的解决方案下的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!