VS2010 AlwaysCreate

本文解决了一个关于Visual Studio 2010中出现的重复编译问题。当解决方案包含不存在的文件时,会导致每次编译时都认为需要重新构建。通过删除这些不存在的文件,可以解决此问题。

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

转载于:https://www.cnblogs.com/wanliyun/p/4586699.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值