如何从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)