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

后端 未结 10 1697
梦如初夏
梦如初夏 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:30

    I had two projects that contained the same file. When the second project built, it compiled the file again, changing the 'touch' datetime. That in turn set the 'AlwaysCreate' flag for the first project.

    I found this out by turning on 'CPS' in my "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe.config" file, as in the xml snippet below. With that activated you can use the DebugView tool to get messages from VS2010 that state WHY it is rebuilding your project. Why those messages don't go into the build log is beyond me, but anyway there it is.

    Add this:

    
      
        
      
    
    

    To here:

    
    
        
            

提交回复
热议问题