Visual Studio recompiles the project every time I try to run it

I have a Visual Studio 2005 solution. Every time I try to start a startup project (C ++), the project gets the assembly again, although I did not make any changes.

How can I get normal, normal behavior when projects are created only when necessary?

How can I debug the problem further?

Thanks,

+4
source share
2 answers

At least once, I got files with the latest recording time, which was in the future. Presumably this happened because either my computer clock was incorrect when the file was last written, or the file came from another computer whose clock was incorrect.

This can cause this problem, so check the timestamps in all source files and check the computer clock for the correct time.

Try the PowerShell command:

get-childitem . -Recurse | ? { $_.LastWriteTime -gt (Get-Date) } 
+3
source
  • try clean then build project / soltuoin

  • call a modification of each of the source files so that the updated datetime is updated (just add and remove the space)

+2
source

Source: https://habr.com/ru/post/1305110/


All Articles