Visual Studio: project is not up to date “because ”AlwaysCreate“ was specified”?

后端 未结 10 1682
梦如初夏
梦如初夏 2020-12-13 18:20

I\'ve migrated a solution from VS2008 to VS2010 (SP1).
Now one of my project never finds peace in being up-to-date. Every build have the following output:



        
相关标签:
10条回答
  • 2020-12-13 18:33

    To get this to work, I simply renamed my existing output directory, in order to recreate all intermediate files (after trying all of the above accepted answers).

    I've had success in the past using DebugView in VS2010 to find files to delete, but today that approach did not work. I could not find ANY reference to the missing header files, found using DebugView, within any of my code or project files XML. I also retrieved the outdated files from TFS to try with them both present and absent on my machine.

    I then used GREP to search my entire solution directory, and the only results were in binary files: the old code files' *.obj, the project file's *.pdb, and vc100.idb. I don't know how these files get modified/replaced during build and rebuild, so I'm not sure if a previous reference in one of those files was responsible for claiming the old header files were missing.

    Hope this helps someone down the road, and thanks for the above info that got me started!

    0 讨论(0)
  • 2020-12-13 18:36

    I got the same issue.

    Root-cause: incorrect build version of VS (32bit and 64bit)

    Solution: Switch mode Debug/Release from 32 bit to 64 bit or reverse

    http://postimg.org/image/3jurey1qr/

    0 讨论(0)
  • 2020-12-13 18:45

    I had a similar problem when one of the include files listed in the project didn't actually exist. I had deleted the file, but forgot to remove it from the project.

    The dependency checker then believes the project is not up to date, but the builder finds nothing to build.

    0 讨论(0)
  • 2020-12-13 18:46

    According to this thread on MSDN:

    In my case in VS10 it was due to having missing (but non-complied .h files, thus no additional error to identify) in project folders.

    A quick check that all project files can open in editor fixed this problem.

    0 讨论(0)
提交回复
热议问题