Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Run active project in Visual Studio 2010

Is there a shortcut to run a project in my solution without setting it (set as startup project) and instead correlate it with the active file?

I mean run a project whose file is active, but I don't want it to be the default. It should be a different shortcut than F10, because I'm mainly talking about debugging!

like image 219
gruber Avatar asked Feb 01 '11 08:02

gruber


People also ask

How do I run a current project in Visual Studio?

To run the program, press Ctrl+F5, select Debug > Start without debugging from the top menu, or select the green Start button. Visual Studio tries to build and run your project.

How do I run code in Visual Studio?

Build and run your code in Visual Studio To build your project, choose Build Solution from the Build menu. The Output window shows the results of the build process. To run the code, on the menu bar, choose Debug, Start without debugging. A console window opens and then runs your app.

How do I select a project in Visual Studio?

You can right-click a project and set it as the Startup Project. It then is debugged when you press F5, or run when you press Ctrl-F5. You can right-click a project and select Debug / Start new instance to debug a project that is not the startup project.


2 Answers

You could set this in the properties of the solution:

enter image description here

like image 51
Darin Dimitrov Avatar answered Oct 12 '22 02:10

Darin Dimitrov


I don't know of a way to do exactly what you ask, but you can run any project:

  • right-click the project in Solution Explorer
  • Debug > Start new instance

It doesn't have to be the Start-up project.

like image 45
ChrisA Avatar answered Oct 12 '22 00:10

ChrisA