How to launch a specific project from Visual Studi

2020-06-30 23:48发布

问题:

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

回答1:

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)



回答2:

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.



回答3:

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.



回答4:

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