Export (0) Print
Expand All

FileTracker Class

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

System.Object
  Microsoft.Build.Utilities.FileTracker

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

public static class FileTracker

The FileTracker type exposes the following members.

  NameDescription
Public methodStatic memberCreateRootingMarkerResponseFile(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.
Public methodStatic memberCreateRootingMarkerResponseFile(String)Given a rooting marker, creates a temporary response file with that rooting marker in it.
Public methodStatic memberEndTrackingContextStops tracking file accesses.
Public methodStatic memberEnsureFileTrackerOnPath()Prepends the path to the appropriate FileTracker assembly to the PATH environment variable. Used for inproc tracking.
Public methodStatic memberEnsureFileTrackerOnPath(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.
Public methodStatic memberFileIsExcludedFromDependenciesTest to see if the specified file is excluded from tracked dependencies
Public methodStatic memberFileIsUnderPathTest to see if the specified file is under the specified path
Public methodStatic memberFindTrackerOnPathSearches %PATH% for the location of Tracker.exe, and returns the first path that matches.Matching full path to Tracker.exe or null if a matching path is not found.
Public methodStatic memberForceOutOfProcTracking(ExecutableType)Determines whether we must track out-of-proc, or whether inproc tracking will work.
Public methodStatic memberForceOutOfProcTracking(ExecutableType, String, String)Determines whether we must track out-of-proc, or whether inproc tracking will work.
Public methodStatic memberFormatRootingMarker(ITaskItem)Construct a rooting marker string from the ITaskItem array of primary sources.
Public methodStatic memberFormatRootingMarker(ITaskItem[])Construct a rooting marker string from the ITaskItem array of primary sources.
Public methodStatic memberFormatRootingMarker(ITaskItem, ITaskItem)Construct a rooting marker string from the ITaskItem array of primary sources.
Public methodStatic memberFormatRootingMarker(ITaskItem[], ITaskItem[])Construct a rooting marker string from the ITaskItem array of primary sources.
Public methodStatic memberGetFileTrackerPath(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.
Public methodStatic memberGetFileTrackerPath(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.
Public methodStatic memberGetTrackerPath(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.
Public methodStatic memberGetTrackerPath(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.
Public methodStatic memberResumeTrackingResume tracking file accesses in the current tracking context.
Public methodStatic memberSetThreadCountSet the global thread count, and assign that count to the current thread.
Public methodStatic memberStartProcess(String, String, ExecutableType)Start the process; tracking the command.
Public methodStatic memberStartProcess(String, String, ExecutableType, String)Start the process; tracking the command.
Public methodStatic memberStartProcess(String, String, ExecutableType, String, String)Start the process; tracking the command.
Public methodStatic memberStartProcess(String, String, ExecutableType, String, String, String)Start the process; tracking the command.
Public methodStatic memberStartProcess(String, String, ExecutableType, String, String, String, String)Start the process; tracking the command.
Public methodStatic memberStartTrackingContextStarts tracking file accesses.
Public methodStatic memberStartTrackingContextWithRootStarts 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.
Public methodStatic memberStopTrackingAndCleanupStop tracking file accesses and get rid of the current tracking contexts.
Public methodStatic memberSuspendTrackingTemporarily suspend tracking of file accesses in the current tracking context.
Public methodStatic memberTrackerArguments(String, String, String, String, String)This method constructs the correct Tracker.exe arguments from its parameters.
Public methodStatic memberTrackerArguments(String, String, String, String, String, String)This method constructs the correct Tracker.exe arguments from its parameters.
Public methodStatic memberTrackerCommandArgumentsThis method constructs the correct Tracker.exe command arguments from its parameters
Public methodStatic memberTrackerResponseFileArguments(String, String, String)This method constructs the correct Tracker.exe response file arguments from its parameters.
Public methodStatic memberTrackerResponseFileArguments(String, String, String, String)This method constructs the correct Tracker.exe response file arguments from its parameters.
Public methodStatic memberWriteAllTLogsWrite tracking logs for all contexts and threads.
Public methodStatic memberWriteContextTLogsWrite tracking logs corresponding to the current tracking context.
Top

.NET Framework

Supported in: 4.5, 4

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft