Every time I run the project VS2010 thinks the project is out of date. I went through this post and enabled debugging output via debugView. The concerning lines in debugView are the following:
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.
First of all it is awful that VS2010 will look at some unrelated file (Well Microsoft!) but I tried this solution and this both using <ClNoDependencies>
to exclude the unrelated file but I have no luck.
I noticed that if I start out with a simple brand new project, it doesn't have this annoying project is out of date
problem. This seems to be a know bug in VS2010 but it is mystery to me why VS2010 links my original project to that unrelated antivirus file but not the new project? Does this means there could be something I can fix in my original project to de-link the file? But I don't know what could it be since my project is not referencing that anti-virus file at all.
Is there any solution to this problem?