I met a vs out-of-date compiling issue. The situation is:
1. it appear all the time if compiling a vs2010 C ++/CLI project. After a successful build, press F5 to run it, prompt me: out of date! After using debugview for further research, the result is: everytime vs finds the EXE is in first modified time (it's correct) while the PDB modified date is always wrong from its real date displayed in explorer. googled, but no result...
2. It doesn' t reproduce for vs2008 and vs2010 other ages.
3. it shoshould relate to the random compile error if compiling targeting to DOTNET 4.0 for the VC project: "error: Not valid Win32 filetime ". but I can't figure out the reason ..
By diagnosticing A vs out-of-date issue, whatever, I gained something:
1. filetime stored by NTFS vs fat. There is a filetime stored in file system. msdn gives good example to help understand it:
AFile timeIs a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since a.m. january 1, 1601 Coordinated Universal Time (UTC ). the system records file times when applications create, access, and write to files.
The NTFS file system stores time values in UTC format, so they are not affected by changes in time zone or Daylight Saving Time. the fat file system stores time values based on the local time of the computer.For example, A file that is saved at pm PST in Washington is seen as pm EST in New York on an NTFS Volume, but it is seen as 3: 00 pm EST in New York on a fat volume.
2.Debugview+Devenv.exe. config: To trace down issue: Enable C ++ Project System Logging
Note: Open debugview firstly and then open.