Reputation: 51
I have updated the c# code in my VS project but when I build it the .exe file is not updated.
I've tried:
I expect the date modified of the .exe file to be todays date but it is not, it is the prev date modified date of over a year ago.
Upvotes: 0
Views: 1027
Reputation:
Something else to consider is in Options there are settings under Build and Run that could be set to build older versions if either the project is out of date or if build errors occur. Meaning that it will build the last successful build instead of the most recent. What does your build Output say? That would be a good place to check as well.
Upvotes: 1
Reputation: 45
Make sure every project and solution has same build configuration selected. You might have some projects configured to output to bin/release and some to bin/debug. Not enough info to say for sure.
As how to find build configuration: VS has feature called Configuration Manager. In default layout and settings is available from drop-down menu on your toolbar with values like 'Debug' and 'Release'. Go to project properties (right-click on project node in solution explorer) and find "Build" tab; you will find there same drop-down menu.
Upvotes: 0