VS2010 AlwaysCreate

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文件。把这些头文件从工程里面剔除就好了。

上一篇:vim添加或删除多行注释


下一篇:他答对一半(打一字)asp.net开源简答题项目