Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have to clean solution and rebuilt solution every time when i have to run my solution.
its urgent
please help me.........
Posted
Updated 30-Jan-14 18:32pm
v2
Comments
[no name] 31-Jan-14 0:43am    
What is your question?
[no name] 31-Jan-14 0:45am    
actually when i press f5 then old exe is run.
every time i have to clean or rebuilt solution after i want to press f5.
[no name] 31-Jan-14 0:46am    
every time i have to go built menu and want to click on CLEAN and rebuilt solution after my solution is run.

1 solution

It seems like you have got a corrupt solution. I do not have an elegant solution, however I think only Rebuild should help as it internally cleans first and then builds the solution.

See here[^]

Also may I suggest a work around? Can you create a brand new solution and add projects one by one and build and play? That way you can narrow down which project is corrupted. And then may be you can recreate only that project.

Please up-vote the solution if it helps and encourage participation. Thank you.
 
Share this answer
 
Comments
[no name] 31-Jan-14 0:53am    
Actually Have u any idea about changes in visual studio debugging???
If any settings will be change than also this problem occur.
from yesterday onward solution runs successful but today it will run old exe file of the solution
CoderPanda 31-Jan-14 0:58am    
Actually no. If you see this post below, there is no clear solution to this and it seems like a bug with VS. Which is why I suggested creating a brand new solution manually and taking your code files to it project by project. Honestly, this isn't an elegant solution, but then you may end up losing a lot of time researching this anyways.

http://stackoverflow.com/questions/3095901/difference-between-build-solution-rebuild-solution-and-clean-solution-in-visua/17781143#17781143
[no name] 31-Jan-14 1:23am    
ok thanks a lot braj panda

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900