Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changes are not happening until a rebuild is performed

I have a large windows application.

Recently when I make any change in the source code and run the project normally with or without debug, the changes are not made.

I tried to rebuild it, and everything goes fine, now every change I made to the source code I have to rebuild the project then run it so that the changes are taking effect.

also I can't debug until I rebuild the solution.

my project is attached to source safe control.

any help is appreciated.

like image 431
Maen Avatar asked Feb 19 '11 07:02

Maen


People also ask

What is the difference between build and rebuild?

Taken from this link: Build means compile and link only the source files that have changed since the last build, while Rebuild means compile and link all source files regardless of whether they changed or not. Build is the normal thing to do and is faster.

Is rebuild the same as clean and build?

For a multi-project solution, "rebuild solution" does a "clean" followed by a "build" for each project (possibly in parallel). Whereas a "clean solution" followed by a "build solution" first cleans all projects (possibly in parallel) and then builds all projects (possibly in parallel).

What does rebuild all do?

Choose Rebuild All to "clean" the solution and then builds all project files and components. Choose Clean All to delete any intermediate and output files. With only the project and component files left, new instances of the intermediate and output files can then be built.

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

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.


2 Answers

You frequently see this happen when a project gets deselected from the "Current Build Configuration" Dialog in visual studio. Try checking there to see if your project is unchecked. I think you can get to that menu by clicking the dropdown that says Debug/Release, and clicking manage/edit.

like image 63
GWLlosa Avatar answered Sep 22 '22 09:09

GWLlosa


This is an old question but I happened to face a similar challenge. Well, for the benefit of someone who may experience the same here is how my problem was solved. I had a multi-project solution where some project depended on the source code from the other projects. Just before giving up and continue with the rebuild thing, I decided to check on the Build Dependencies=>Project Dependencies(Right-Click on the project). I found that the problematic code was from a Class Library that was not part of the dependencies(Unchecked). When I Included the project in the dependencies my problem vanished into thin air.

like image 24
Tamseyc Avatar answered Sep 20 '22 09:09

Tamseyc