Export (0) Print
Expand All

FlatTrackingData.FinalizeTLogs Method

Compact and finalize the Tlogs based on the success of the tracked execution.

Namespace:  Microsoft.Build.Utilities
Assembly:  Microsoft.Build.Utilities.v4.0 (in Microsoft.Build.Utilities.v4.0.dll)

public static void FinalizeTLogs(
	bool trackedOperationsSucceeded,
	ITaskItem[] readTLogNames,
	ITaskItem[] writeTLogNames,
	ITaskItem[] trackedFilesToRemoveFromTLogs
)

Parameters

trackedOperationsSucceeded
Type: System.Boolean

True indicates that tracked operations succeeded.

readTLogNames
Type: Microsoft.Build.Framework.ITaskItem[]

TLogs to be read.

writeTLogNames
Type: Microsoft.Build.Framework.ITaskItem[]

TLogs to be written.

trackedFilesToRemoveFromTLogs
Type: Microsoft.Build.Framework.ITaskItem[]

Tracked files to be removed from TLogs.

Once tracked operations have been completed then we need to compact / finalize the Tlogs based on the success of the tracked execution. If it fails, then we clean out the TLogs. If it succeeds then we clean temporary files from the TLogs and re-write them.

.NET Framework

Supported in: 4.6, 4.5, 4
Show:
© 2015 Microsoft