FlatTrackingData.FinalizeTLogs Method
Compact and finalize the Tlogs based on the success of the tracked execution.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Namespace: Microsoft.Build.Utilities
Assembly: Microsoft.Build.Utilities.Core (in Microsoft.Build.Utilities.Core.dll)
Syntax
'Declaration
Public Shared Sub FinalizeTLogs ( _
trackedOperationsSucceeded As Boolean, _
readTLogNames As ITaskItem(), _
writeTLogNames As ITaskItem(), _
trackedFilesToRemoveFromTLogs As ITaskItem() _
)
public static void FinalizeTLogs(
bool trackedOperationsSucceeded,
ITaskItem[] readTLogNames,
ITaskItem[] writeTLogNames,
ITaskItem[] trackedFilesToRemoveFromTLogs
)
public:
static void FinalizeTLogs(
bool trackedOperationsSucceeded,
array<ITaskItem^>^ readTLogNames,
array<ITaskItem^>^ writeTLogNames,
array<ITaskItem^>^ trackedFilesToRemoveFromTLogs
)
static member FinalizeTLogs :
trackedOperationsSucceeded:bool *
readTLogNames:ITaskItem[] *
writeTLogNames:ITaskItem[] *
trackedFilesToRemoveFromTLogs:ITaskItem[] -> unit
public static function FinalizeTLogs(
trackedOperationsSucceeded : boolean,
readTLogNames : ITaskItem[],
writeTLogNames : ITaskItem[],
trackedFilesToRemoveFromTLogs : ITaskItem[]
)
Parameters
trackedOperationsSucceeded
Type: System.BooleanTrue indicates that tracked operations succeeded.
readTLogNames
Type: array<Microsoft.Build.Framework.ITaskItem[]TLogs to be read.
writeTLogNames
Type: array<Microsoft.Build.Framework.ITaskItem[]TLogs to be written.
trackedFilesToRemoveFromTLogs
Type: array<Microsoft.Build.Framework.ITaskItem[]Tracked files to be removed from TLogs.
Remarks
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 Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.