Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio project not building when I click debug or press F5

VS2010 c#, winforms project.

It does not build automatically when I click on debug or press f5. If I manually build the project before I debug, it compiles and changes are picked up.

My other projects all work as expected. Why doesn't it build automatically?

like image 232
JL. Avatar asked Oct 05 '11 11:10

JL.


People also ask

What is Ctrl F5 in Visual Studio?

F5 is used to start your project in debug mode and Ctrl-F5 is used to start your project without debug mode.

How do I enable debugging in Visual Studio?

In the Visual Studio toolbar, make sure the configuration is set to Debug. To start debugging, select the profile name in the toolbar, such as <project profile name>, IIS Express, or <IIS profile name> in the toolbar, select Start Debugging from the Debug menu, or press F5.

How do I step through a breakpoint in Visual Studio?

Enter break modeBegin code stepping by selecting F10 or F11. Doing so allows you to quickly find the entry point of your app. You can then continue to press step commands to navigate through the code. Run to a specific location or function, for example, by setting a breakpoint and starting your app.

How do you load a VS project?

In Solution Explorer, select the projects you want to load (press Ctrl while clicking to select more than one project), and then right-click on the project and choose Reload Project. Visual Studio will remember which projects are loaded the next time you open the solution locally.


2 Answers

Right-click the Solution (not project) in the Solution Explorer and select Configuration Manager. Check if Build is turn off for the current configuration.

like image 151
tcarvin Avatar answered Sep 23 '22 21:09

tcarvin


Check your settings in Tools->Options.

Go to the projects and Solutions area, Build and Run page.

There is a setting "On Run, when projects are out of date:" Make sure this is set to 'Always build.'

enter image description here

like image 21
Cole Flohr Avatar answered Sep 21 '22 21:09

Cole Flohr