VS2010:项目已过期

时间:2012-09-26 15:02:14

标签: c++ visual-studio visual-studio-2010

每次运行项目时,VS2010都认为项目已经过时了。我浏览了这个post并通过debugView启用了调试输出。 debugView中的相关行如下:

00000001    0.00000000  [7792] devenv.exe Information: 0 :  
00000002    0.00001620  [7792] Project 'C:\code\MyProject\MyProject.vcxproj' not up to date because 'C:\PROGRAMDATA\SOPHOS\SOPHOS ANTI-VIRUS\CONFIG\CONFIG.BOPS' was modified at 09/24/2012 12:50:28, which is newer than 'C:\CODE\MyProject\DEBUG\MyProject.BSC' which was modified at 09/24/2012 16:07:24.
00000003    23.05826569 [7792] devenv.exe Information: 0 :  
00000004    23.05829620 [7792] Project 'C:\code\MyProject\MyProject.vcxproj' not up to date because 'C:\PROGRAMDATA\SOPHOS\SOPHOS ANTI-VIRUS\CONFIG\CONFIG.BOPS' was modified at 09/24/2012 12:50:28, which is newer than 'C:\CODE\MyProject\DEBUG\MyProject.BSC' which was modified at 09/24/2012 16:07:24.    
00000005    26.08067894 [7792] devenv.exe Information: 0 :  
00000006    26.08071709 [7792] Project 'C:\code\MyProject\MyProject.vcxproj' not up to date because 'C:\PROGRAMDATA\SOPHOS\SOPHOS ANTI-VIRUS\CONFIG\CONFIG.BOPS' was modified at 09/24/2012 12:50:28, which is newer than 'C:\CODE\MyProject\DEBUG\MyProject.BSC' which was modified at 09/24/2012 16:07:24. 

首先,VS2010会查看一些不相关的文件(微软!),但我尝试this解决方案和this使用<ClNoDependencies>来排除不相关的文件但是很糟糕我没有运气。

我注意到如果我从一个简单的全新项目开始,它就没有这个烦人的project is out of date问题。这似乎是VS2010中的一个知识错误,但对我来说,为什么VS2010将我的原始项目链接到那个无关的防病毒文件而不是新项目,这是个谜。这是否意味着我可以在原始项目中修复一些内容来解除链接文件?但我不知道它是什么,因为我的项目根本没有引用该反病毒文件。

这个问题有解决办法吗?

1 个答案:

答案 0 :(得分:0)