Laura
Laura

Reputation: 51

Visual Studio 2015 not updating .exe

I have updated the c# code in my VS project but when I build it the .exe file is not updated.

I've tried:

  1. clicking 'rebuild' in visual studio
  2. deleting the files from my bin/debug folder and recreating them, the .exe still has the old date modified but the .dll files have the correct date modified
  3. closing and re-opening the project in vs 2015
  4. having the project as the only one within vs

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

Answers (2)

user4761570
user4761570

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

Piotr Rachwał
Piotr Rachwał

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

Related Questions