Share via


How to disable the generation of the .lastbuildstate and .tlog files

Question

Tuesday, May 17, 2011 4:42 PM

My project currently is converting the existing codes in VC++ 6.0 to VC++ 2010.  One thing I realized that VS 2010 will generate a Debug (I am using the DEBUG in build) directory which houses 4 files; *.lastbuildstate, *.write.1.tlog, *.read.1.tlog, *.command.1.tlg.

Note: * is an abbreviation for my unique project.

Did anyone know how to disable in VS2010 IDE such that it doesn't generate this directory and/or files?  Some people were saying to put the following lines in the *.vcxproj file (i tried but didn't work):

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">

      <TrackFileAccess>false</TrackFileAccess>

  </PropertyGroup>

 

any help would be greatly appreciated!

 

Thank you!

 

All replies (3)

Wednesday, May 18, 2011 6:32 AM ✅Answered

This leads me to think would VS2010 need to absolutely generate these files to begin with?

Yes Cfong! The Microsoft connect explain the same thing. You can check in Too many build files are left over after build. All the files are used by MS build system. We can't control that. IF you want specify the .opensdf and .sdf files in a specified location, you can do from Tools menu.

 

Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/


Tuesday, May 17, 2011 5:10 PM

You can disable Timing Logging by setting Tools=>Options =>Projects and Solutions =>VC++ Project Settings/Build Timings=> “No” or
Tools=>Options=>Project and Solutions=>Build and Run =>MSBuild project build output verbosity=> Quiet

 

I think, You have checked this How do I prevent msbuild from creating tlog files during my C++ builds. If you use MsBuild, it might work properly. But, If you use IDE, you have to chnage from IDE only.

Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/


Tuesday, May 17, 2011 5:59 PM

Thanks for your reply Selvam,

 

I tried your input by setting the Tools=>Options=>Project and Solutions=>Build and Run => MSBuild Project Build output verbosity => Quiet; what this really does is to turn off the verbosity at the output window in the IDE and it doesn't have anything to do with the generated files in the Debug directory.  Thus, I am still seeing those 4 files got generated.  I also tried to set the  Tools=>Options=>Project and Solutions=>Build and Run => MSBuild Project build log file verbosity => Quiet. Same thing.

 

This leads me to think would VS2010 need to absolutely generate these files to begin with?