Changes are not happening until a rebuild is performed

倖福魔咒の 提交于 2019-12-10 14:22:37

问题


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.


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


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)



来源:https://stackoverflow.com/questions/5049502/changes-are-not-happening-until-a-rebuild-is-performed

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!