vs2008每次build都会重新编译链接 && 项目已经过期

转自:http://blog.csdn.net/movezzzz/article/details/6816605

无外乎两种情况:

1.时间问题,所创建的文件的时间比如是:2011-09-22 09:03:22,那么你的系统时间之前被你改动过当前时间是:2011-08-22 09:03:22。这下好了,vs每次编译的时候都会检查每个文件的最后修改日期,发现是上一个编译时间之后的,都会重新编译。所以在这一个月内,每次都会重新编译文件。文章地址https://www.yii666.com/article/756100.html

解决办法:

a.将文件稍作修改,加个注释之类的。然后重新保存,让其和系统时间一致。这样的话,可能有大量的文件,都需要这样做。网址:yii666.com<

b.最好的方法,还是直接修改系统的时间。让其正常。就能解决。

2.如果,不是时间问题呢?那就是:没有启用/Gm编译选项。文章来源地址:https://www.yii666.com/article/756100.html

解决办法:

设置工程属性,为以下选项:

C/C++ -> Code Generation -> Enable Minimal Rebuild: Yes(/Gm)

C/C++ -> Genera -> Debug Information Format: Program Database for Edit & Continue (/ZI), 或者 Program Database (/Zi)网址:yii666.com

得解,反正,我的是通过第二种方案解决的。

【项目已经过期解决方案】

To find the missing
file(s), use info from the article Enable
C++ project system logging to enable debug logging in Visual Studio and let it just tell you what's causing the rebuild:



Open the devenv.exe.config file (found in %PROGRAMFILES%\Microsoft Visual Studio 10.0(or others)\Common7\IDE\)

Add the following after the </configsections> line:文章来源地址https://www.yii666.com/article/756100.html

复制内容到剪贴板
代码:

<system.diagnostics>

  <switches>

    <add name="CPS" value="4" />

  </switches>

</system.diagnostics>

Restart
Visual Studio

Open up DbgView and
make sure it's capturing debug output

Try to debug (hit F5 in Visual Studio)

Search the debug log for any lines of the form:



devenv.exe Information: 0 : Project 'Bla\Bla\Dummy.vcxproj' not up to date because build input 'Bla\Bla\SomeFile.h' is missing.



(I just hit Ctrl+F and searched for not up to date) These will be the references causing the project to be perpetually "out of date".



To correct this, either remove any references to the missing files from your project, or update the references to indicate their actual locations.





http://stackoverflow.com/questio
... nothing-has-changed

版权声明:本文内容来源于网络,版权归原作者所有,此博客不拥有其著作权,亦不承担相应法律责任。文本页已经标记具体来源原文地址,请点击原文查看来源网址,站内文章以及资源内容站长不承诺其正确性,如侵犯了您的权益,请联系站长如有侵权请联系站长,将立刻删除

vs2008每次build都会重新编译链接 && 项目已经过期-相关文章

  1. 每次Xcode 升级之后 插件失效,两步解决

  2. Android Studio 每次运行都会再下载一遍,修改

  3. struts2每次访问都会创建一个新的session

  4. vs2008每次build都会重新编译链接 && 项目已经过期

  5. win10每次开机都会自检系统盘(非硬件故障)——解决方案2019.07.12

  6. 解决升级Nodepad++都会让插件失效

    主要原因是Plugin Manager失效导致的,需要重新导入导入一下PluginManager就可以了地址:https://github.com/bruderstein/nppPluginManager/releases

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信图片_20190322181744_03.jpg

微信扫一扫打赏

请作者喝杯咖啡吧~

支付宝扫一扫领取红包,优惠每天领

二维码1

zhifubaohongbao.png

二维码2

zhifubaohongbao2.png