代码改变世界

VS2010 AlwaysCreate

2015-06-18 18:22  哦万里云  阅读(624)  评论(0编辑  收藏  举报

VS2010 解决方案里有两个工程,每次按F7编译都会链接一次。链接完成再按F7又会链接一次。。。。。

 

提示:

正在创建“Debug\testb.unsuccessfulbuild”,因为已指定“AlwaysCreate”。1>ClCompile:

 


哪来的AlwaysCreate:

MSDN上说:

Most likely, the issue is caused by the fact that some files are listed as part of the project files but are missing on the disk. Because these files are part of the project files, the new up to date check mechanism will check for their existence. If the files are not on the disk, the up to date check will assume that a new build is needed. The fix is to remove the files from the project files if they are not on the disk.

 


解决:那两个工程里都有不存在的.h文件。把这些头文件从工程里面剔除就好了。