KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
As all of us already know VS2010 has got an major upgrade of its build system, which is based on MSBuild. According to MS representatives (see comments in Visual Studio 2010 always rebuild project after hibernation/restart of computer ) MSBuild now injects itself into other tools (like C++ compilers, linkers, etc.) to find out the dependencies of a target. One of the drawbacks of such approach is that now your project may be forcedly rebuilt because of modifications in irrelevant files :( In my case it is C:\PROGRAMDATA\NVIDIA CORPORATION\DRS\NVDRSDB0.BIN , which is periodically changed by NVIDIA update service (Windows 7 32-bit). I've discovered that by turning VS2010 options " MSBuild project build output verbosity " and " MSBuild project build log file verbosity " to " Diagnostic ". After that I was able to see the cause of the issue in the Build Output Window: Task "CL" (TaskId:55) Read Tracking Logs: (TaskId:55) ..\..\temp\Release\Editor\cl.read.1.tlog (TaskId:55) Outputs for E:\USERS\A.USER.ORG\DEVEL\EDITOR\STDAFX.CPP: (TaskId:55) E:\USERS\A.USER.ORG\DEVEL\TEMP\RELEASE\EDITOR\STDAFX.OBJ (TaskId:55) C:\PROGRAMDATA\NVIDIA CORPORATION\DRS\NVDRSDB0.BIN was modified at 23-Feb-12 12:08:20. (TaskId:55) stdafx.cpp will be compiled. (TaskId:55) ... Tracking command: (TaskId:55) C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\NETFX 4.0 Tools\Tracker.exe ... stdafx.cpp /clr:nostdlib (TaskId:55) stdafx.cpp (TaskId:55) Done executing task "CL". (TaskId:55) One of the workarounds is to add the irrelevant files to C++ ignore list : <ItemGroup> <ClNoDependencies Include="NVDRSDB0.BIN" /> <ClNoDependencies Include="C:\PROGRAMDATA\NVIDIA
Tags (comma-separated)
Save Edits
Cancel