Condividi tramite


FileTracker Class

Definition

This class contains utility functions to encapsulate launching and logging for the Tracker

public ref class FileTracker abstract sealed
public static class FileTracker
type FileTracker = class
Public Class FileTracker
Inheritance
FileTracker

Methods

CreateRootingMarkerResponseFile(ITaskItem[])

Given a set of source files in the form of ITaskItem, creates a temporary response file containing the rooting marker that corresponds to those sources.

CreateRootingMarkerResponseFile(String)

Given a rooting marker, creates a temporary response file with that rooting marker in it.

EndTrackingContext()

Stops tracking file accesses.

EnsureFileTrackerOnPath()

Prepends the path to the appropriate FileTracker assembly to the PATH environment variable. Used for inproc tracking, or when the .NET Framework may not be on the PATH.

EnsureFileTrackerOnPath(String)

Prepends the path to the appropriate FileTracker assembly to the PATH environment variable. Used for inproc tracking, or when the .NET Framework may not be on the PATH.

FileIsExcludedFromDependencies(String)

Test to see if the specified file is excluded from tracked dependencies

FileIsUnderPath(String, String)

Test to see if the specified file is under the specified path

FindTrackerOnPath()

Searches %PATH% for the location of Tracker.exe, and returns the first path that matches.

ForceOutOfProcTracking(ExecutableType)

Determines whether we must track out-of-proc, or whether inproc tracking will work.

ForceOutOfProcTracking(ExecutableType, String, String)

Determines whether we must track out-of-proc, or whether inproc tracking will work.

FormatRootingMarker(ITaskItem)

Construct a rooting marker string from the ITaskItem array of primary sources.

FormatRootingMarker(ITaskItem, ITaskItem)

Construct a rooting marker string from the ITaskItem array of primary sources.

FormatRootingMarker(ITaskItem[])

Construct a rooting marker string from the ITaskItem array of primary sources.

FormatRootingMarker(ITaskItem[], ITaskItem[])

Construct a rooting marker string from the ITaskItem array of primary sources.

GetFileTrackerPath(ExecutableType)

Given the ExecutableType of the tool being wrapped and information that we know about our current bitness, figures out and returns the path to the correct FileTracker.dll.

GetFileTrackerPath(ExecutableType, String)

Given the ExecutableType of the tool being wrapped and information that we know about our current bitness, figures out and returns the path to the correct FileTracker.dll.

GetTrackerPath(ExecutableType)

Given the ExecutableType of the tool being wrapped and information that we know about our current bitness, figures out and returns the path to the correct Tracker.exe.

GetTrackerPath(ExecutableType, String)

Given the ExecutableType of the tool being wrapped and information that we know about our current bitness, figures out and returns the path to the correct Tracker.exe.

ResumeTracking()

Resume tracking file accesses in the current tracking context.

SetThreadCount(Int32)

Set the global thread count, and assign that count to the current thread.

StartProcess(String, String, ExecutableType)

Start the process; tracking the command.

StartProcess(String, String, ExecutableType, String)

Start the process; tracking the command.

StartProcess(String, String, ExecutableType, String, String)

Start the process; tracking the command.

StartProcess(String, String, ExecutableType, String, String, String)

Start the process; tracking the command.

StartProcess(String, String, ExecutableType, String, String, String, String)

Start the process; tracking the command.

StartTrackingContext(String, String)

Starts tracking file accesses.

StartTrackingContextWithRoot(String, String, String)

Starts tracking file accesses, using the rooting marker in the response file provided. To automatically generate a response file given a rooting marker, call FileTracker.CreateRootingMarkerResponseFile.

StopTrackingAndCleanup()

Stop tracking file accesses and get rid of the current tracking contexts.

SuspendTracking()

Temporarily suspend tracking of file accesses in the current tracking context.

TrackerArguments(String, String, String, String, String)

This method constructs the correct Tracker.exe arguments from its parameters

TrackerArguments(String, String, String, String, String, String)

This method constructs the correct Tracker.exe arguments from its parameters

TrackerCommandArguments(String, String)

This method constructs the correct Tracker.exe command arguments from its parameters

TrackerResponseFileArguments(String, String, String)

This method constructs the correct Tracker.exe response file arguments from its parameters

TrackerResponseFileArguments(String, String, String, String)

This method constructs the correct Tracker.exe response file arguments from its parameters

WriteAllTLogs(String, String)

Write tracking logs for all contexts and threads.

WriteContextTLogs(String, String)

Write tracking logs corresponding to the current tracking context.

Applies to