Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I force a rebuild when the project configuration changes? [duplicate]

I have several project configurations and I switch between them constantly. However, every time I switch, I have to manually do a rebuild before running. How do I force it to rebuild automatically?

like image 287
Tom Sweeney Avatar asked Aug 26 '09 13:08

Tom Sweeney


People also ask

How do you rebuild or code a project?

On the menu bar, choose Build, and then choose either Build ProjectName or Rebuild ProjectName. Choose Build ProjectName to build only those project components that have changed since the most recent build. Choose Rebuild ProjectName to "clean" the project and then build the project files and all project components.

How to change build configuration in Visual Studio 2022?

Right-click on the project node and select Options. You can also double-click on the project node to bring up the Project Options dialog. Select Add to create a new configuration. You can also copy any of the existing configurations.

What are Debug and Release build configurations?

A Debug configuration supports the debugging of an app, and a Release configuration builds a version of the app that can be deployed.


1 Answers

From the Tools Menu

  • Select Options

  • Select Projects and Solutions

  • Select Build and Run

In the combo box below the text that says "On Run, when projects are out of date"

Make sure that you have selected "Always build"

like image 185
chollida Avatar answered Sep 28 '22 22:09

chollida