msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

Unable to disable msbuild tlog generation

Open matt-sm opened this issue 1 year ago • 0 comments

Issue Description

I was under the impression that tolog files can be disabled by adding

<PropertyGroup Label="Globals">
    <TrackFileAccess>false</TrackFileAccess>
</PropertyGroup>

to my vcxproj file. I have been unable to get this to work.

myproject.zip

Steps to Reproduce

create hello world: https://learn.microsoft.com/en-us/cpp/build/walkthrough-using-msbuild-to-create-a-visual-cpp-project?view=msvc-170

Add

<PropertyGroup Label="Globals">
    <TrackFileAccess>false</TrackFileAccess>
</PropertyGroup>

to myproject.vcxproj. Then run

msbuild .\myproject.vcxproj /p:configuration=debug 

Expected Behavior

no debug\myproject.tlog\*.tlog files are created

Actual Behavior

many tlog files are generated in the debug folder

Analysis

very limited support docs exist

Versions & Configurations

msbuild --version                                                                                                    
MSBuild version 17.11.9+a69bbaaf5 for .NET Framework                                                                    
17.11.9.46202

matt-sm avatar Oct 14 '24 23:10 matt-sm