Selecting which project under a solution to debug or run in Visual Studio 2010(选择要在 Visual Studio 2010 中调试或运行的解决方案下的项目)
问题描述
这应该很容易.我只是不知道要搜索什么...
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 中调试或运行的解决方案下的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:选择要在 Visual Studio 2010 中调试或运行的解决方案下的项目


- 输入按键事件处理程序 2022-01-01
- C#MongoDB使用Builders查找派生对象 2022-09-04
- WebMatrix WebSecurity PasswordSalt 2022-01-01
- 良好实践:如何重用 .csproj 和 .sln 文件来为 CI 创建 2022-01-01
- C# 中多线程网络服务器的模式 2022-01-01
- 如何用自己压缩一个 IEnumerable 2022-01-01
- Web Api 中的 Swagger .netcore 3.1,使用 swagger UI 设置日期时间格式 2022-01-01
- 在哪里可以找到使用中的C#/XML文档注释的好例子? 2022-01-01
- 带有服务/守护程序应用程序的 Microsoft Graph CSharp SDK 和 OneDrive for Business - 配额方面返回 null 2022-01-01
- MoreLinq maxBy vs LINQ max + where 2022-01-01