如何从Visual Studio解决方案启动特定项目 [英] How to launch a specific project from Visual Studio solution

查看:376
本文介绍了如何从Visual Studio解决方案启动特定项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个项目的解决方案.如何分别从Visual Studio启动每个项目?

I have a solution which includes several projects. How can I launch each project from Visual Studio separately?

推荐答案

您可以将解决方案配置为具有多个启动项目-在解决方案资源管理器中右键单击该解决方案,选择设置启动项目",选择多个启动项目",然后选择您希望开始的.当您按F5键时,它们都会全部启动.

You can configure a solution to have multiple startup projects - Right click the solution in Solution Explorer, choose "Set StartUp projects", choose "Multiple Startup Projects", and choose the ones you wish to have start. They'll all be started when you hit F5.

或者,您可以在解决方案资源管理器中右键单击任何项​​目,然后选择调试"->启动新实例"或调试"->进入新实例"-您可以对要执行的任何项目执行此操作,随时. (因此,如果要在启动调试时启动某些项目,并在以后启动其他项目,则可以采用这种方式)

Or, you can right click any project in Solution Explorer, and choose "Debug"->"Start New Instance" or "Debug"->"Step Into New Instance" - you can do this to any projects you want to, at any time. (So, if you want to have some projects start when you start debugging, and start others at a later point, this is the way to go)

这篇关于如何从Visual Studio解决方案启动特定项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆