简体   繁体   中英

How to launch a specific project from Visual Studio solution

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

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)

Right click your solution and choose "set startup projects"

启动项目

next, you can choose which projects you want to start simultaniously

启动概述

or you could right click a project and set that one to startup, each time you "F5", that one will start. You can verify which one is set as startup by looking at the one in bold.

You can also select the option Set StartUp Projects...>Current Selection . To run the project you have in editor window.

You could select a default startup project for the solution in the menu if you right click on it. This could also be done if you right click on the solution and go to the properties window where you could select a single or multiple startup projects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM