Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio stopped rebuilding dependent projects

Suddenly, Visual Studio 2010 has stopped behaving as it used to:

I have a solution containing several projects: a Class Library project, an Application project and a Test project.

The Application project is set as default startup project.

Now if I change anything in the Class Library and press F5, Visual Studio does not rebuild the Class Library anymore, so that it runs outdated code.

Same behaviour with the Test project.

What am I doing wrong? I am pretty sure this type of behaviour is new, but I do not know what I have changed.

like image 437
JohnB Avatar asked Jul 22 '12 09:07

JohnB


People also ask

How do I rebuild a Visual Studio project code?

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.

What is the difference between build rebuild and clean in Visual Studio?

Clean Solution - deletes all compiled files (all dll's and exe's ). Build Solution - compiles code files (dll and exe) that have changed. Rebuild Solution - Deletes all compiled files and Compiles them again regardless of whether or not the code has changed.

What does Rebuilding do in Visual Studio?

Build and rebuild are two options available in Visual Studio. The main difference between build and rebuild in Visual Studio is that build helps to complete the code files which are changed while rebuild deletes all previously compiled files and compiles the solution from scratch ignoring anything done before.

How do I refresh a Visual Studio 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.


1 Answers

In the solution explorer, right click on the solution name and go to "Configuration Manager.." You will see the active solution configuration. Select which project to build or not by turning the checkbox on or off. Hope that solves your problem.

like image 183
Shuhel Ahmed Avatar answered Sep 30 '22 03:09

Shuhel Ahmed