MSBuild binary logs can capture detailed property tracking information by setting the MSBuildLogPropertyTracking environment variable. This feature tracks property reassignments, initial values, environment variable reads, and uninitialized property reads. The tracking values are bit flags (1, 2, 4, 8) that can be combined, with 15 enabling all tracking. The tracked data appears in the MSBuild Structured Log Viewer, showing exactly when and where properties are set, including line and column information from XML definitions.

3m read timeFrom meziantou.net
Post cover image
Table of contents
# Enabling property tracking# Viewing the tracked properties# Additional resources

Sort: