Changes are not happening until a rebuild is performed

7.5k views Asked by At

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.

6

There are 6 answers

6
Shekhar_Pro On

If you are referencing a .dll whose code is in another project you will need to build the project before the changes are reflected even if both projects are in same solution. sadly there is no running away from it.

1
GWLlosa On

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.

0
AbuDawood Oussama On

I have faced the same problem because I have done some unsafe modifications upon the project names and have used find/replace upon the solution. Which resulted in a hidden exception in the android manifest file and exactly at the package name.

  • I avoid all types of headaches, I have created a new blank project with the desired name and namespaces and then moved the functional files, resource files and then modified static files like manifest and so on.

  • Never use unsafe method for project data configuration & modification

0
pipi772 On

I had the same problem. The Winforms application project was set to x86 and the dependency class library (inside the same solution) was x86, then changed to "Any CPU" and had to manually rebuild.

In the Application project (the one I was manually rebuilding), go to > Properties > Build > Set to "Any CPU" (the exact build as dependency).

Solved.

0
Tamseyc On

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.

0
StayOnTarget On

Go to your configuration Manager and make sure build checkbox is selected for your project.

other thing you can try is: Go to tools > Options>> A window will pop up> Under Project and Solutions > select Build and Run

Make sure Before building is set to Save all changes

(Copied from answer by amit dayama at https://stackoverflow.com/a/32820701/3195477)