0

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?

Community
  • 1
  • 1
zar
  • 11,361
  • 14
  • 96
  • 178
  • Do you have any files in the old project that are in the future? If not I would do a full clean. – drescherjm Sep 26 '12 at 15:10
  • I did full clean, didn't help. – zar Sep 26 '12 at 15:12
  • The only time I've ever had this happen i had to run through the combination of making sure non-source-compiles (i.e. a .h file) that was deleted from disk was also deleted from the project. not your problem. Also, i had to turn OFF browser database building, delete all .BSC files in the build tree on disk, and after a restart of VS life was finally good again. I hope you can figure this out, because VS-build-all-the-time bugs just plain suck. – WhozCraig Sep 26 '12 at 15:54
  • This has not happened to me in years and I am a C++ software developer who uses several versions of Visual Studio daily. I do not ever use .BSC files however. – drescherjm Sep 26 '12 at 17:29

1 Answers1

0

This is a known conflict between a bug in VS2010 and Sophos 10

http://community.sophos.com/t5/Sophos-EndUser-Protection/Buffer-overflow-prevention-system-and-msbuild/td-p/29483

gigaplex
  • 471
  • 2
  • 8