6 instantiations of TargetLoggingContext
Microsoft.Build (1)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
274return new TargetLoggingContext(this, projectFullPath, target, parentTargetName, buildReason);
Microsoft.Build.Engine.UnitTests (5)
BackEnd\TaskExecutionHost_Tests.cs (3)
984TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)); 1012TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)); 1237TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1));
BackEnd\TaskRegistry_Tests.cs (2)
89_targetLoggingContext = new TargetLoggingContext(_loggingService, _loggerContext); 1247InvalidProjectFileException exception = Should.Throw<InvalidProjectFileException>(() => registry.GetRegisteredTask("Task1", "none", null, false, new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)), ElementLocation.Create("none", 1, 2)));
47 references to TargetLoggingContext
Microsoft.Build (36)
BackEnd\Components\Logging\ProjectLoggingContext.cs (1)
271internal TargetLoggingContext LogTargetBatchStarted(string projectFullPath, ProjectTargetInstance target, string parentTargetName, TargetBuiltReason buildReason)
BackEnd\Components\Logging\TaskLoggingContext.cs (4)
22private TargetLoggingContext _targetLoggingContext; 37internal TaskLoggingContext(TargetLoggingContext targetLoggingContext, string projectFullPath, ProjectTargetInstanceChild task, string taskAssemblyLocation) 46private static BuildEventContext CreateInitialContext(TargetLoggingContext targetLoggingContext, 96internal TargetLoggingContext TargetLoggingContext
BackEnd\Components\RequestBuilder\IntrinsicTask.cs (3)
26protected IntrinsicTask(TargetLoggingContext loggingContext, ProjectInstance projectInstance, bool logTaskInputs) 36internal TargetLoggingContext LoggingContext 68internal static IntrinsicTask InstantiateTask(ProjectTargetInstanceChild taskInstance, TargetLoggingContext loggingContext, ProjectInstance projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (2)
19using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 42public ItemGroupIntrinsicTask(ProjectItemGroupTaskInstance taskInstance, TargetLoggingContext loggingContext, ProjectInstance projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (2)
12using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 35public PropertyGroupIntrinsicTask(ProjectPropertyGroupTaskInstance taskInstance, TargetLoggingContext loggingContext, ProjectInstance projectInstance, bool logTaskInputs)
BackEnd\Components\RequestBuilder\ITaskBuilder.cs (2)
8using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 54Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken);
BackEnd\Components\RequestBuilder\TargetEntry.cs (3)
21using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 434TargetLoggingContext targetLoggingContext = null; 813private async Task<WorkUnitResult> ProcessBucket(ITaskBuilder taskBuilder, TargetLoggingContext targetLoggingContext, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution)
BackEnd\Components\RequestBuilder\TaskBuilder.cs (3)
28using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 103private TargetLoggingContext _targetLoggingContext; 152public async Task<WorkUnitResult> ExecuteTask(TargetLoggingContext loggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild taskInstance, TaskExecutionMode mode, Lookup inferLookup, Lookup executeLookup, CancellationToken cancellationToken)
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (2)
93private TargetLoggingContext _targetLoggingContext; 245public void InitializeForTask(IBuildEngine2 buildEngine, TargetLoggingContext loggingContext, ProjectInstance projectInstance, string taskName, ElementLocation taskLocation, ITaskHost taskHost, bool continueOnError,
Instance\TaskFactories\AssemblyTaskFactory.cs (3)
16using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 256TargetLoggingContext targetLoggingContext, 419internal bool TaskNameCreatableByFactory(string taskName, IDictionary<string, string> taskIdentityParameters, string taskProjectFile, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation)
Instance\TaskRegistry.cs (7)
25using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 463TargetLoggingContext targetLoggingContext, 519TargetLoggingContext targetLoggingContext, 767TargetLoggingContext targetLoggingContext, 1265internal bool CanTaskBeCreatedByFactory(string taskName, string taskProjectFile, IDictionary<string, string> taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation) 1355internal TaskFactoryWrapper GetTaskFactoryFromRegistrationRecord(string taskName, string taskProjectFile, IDictionary<string, string> taskIdentityParameters, TargetLoggingContext targetLoggingContext, ElementLocation elementLocation) 1369private bool GetTaskFactory(TargetLoggingContext targetLoggingContext, ElementLocation elementLocation, string taskProjectFile)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
897if (items is TargetLoggingContext.TargetOutputItemsInstanceEnumeratorProxy proxy)
Utilities\EngineFileUtilities.cs (3)
249case TargetLoggingContext targetLoggingContext: 294case TargetLoggingContext targetLoggingContext: 360private static void LogDriveEnumerationWarningWithTargetLoggingContext(TargetLoggingContext targetLoggingContext, IElementLocation includeLocation, IElementLocation excludeLocation, bool excludeFileSpecIsEmpty, bool disableExcludeDriveEnumerationWarning, string fileSpec)
Microsoft.Build.Engine.UnitTests (11)
BackEnd\MockTaskBuilder.cs (2)
11using TargetLoggingContext = Microsoft.Build.BackEnd.Logging.TargetLoggingContext; 83public Task<WorkUnitResult> ExecuteTask(TargetLoggingContext targetLoggingContext, BuildRequestEntry requestEntry, ITargetBuilderCallback targetBuilderCallback, ProjectTargetInstanceChild task, TaskExecutionMode mode, Lookup lookupForInference, Lookup lookupForExecution, CancellationToken cancellationToken)
BackEnd\TargetEntry_Tests.cs (5)
676TargetLoggingContext.EnableTargetOutputLogging = true; 755TargetLoggingContext.EnableTargetOutputLogging = false; 770bool originalTargetOutputLoggingValue = TargetLoggingContext.EnableTargetOutputLogging; 771TargetLoggingContext.EnableTargetOutputLogging = false; 822TargetLoggingContext.EnableTargetOutputLogging = originalTargetOutputLoggingValue;
BackEnd\TaskExecutionHost_Tests.cs (3)
984TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)); 1012TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1)); 1237TargetLoggingContext tlc = new TargetLoggingContext(_loggingService, new BuildEventContext(1, 1, BuildEventContext.InvalidProjectContextId, 1));
BackEnd\TaskRegistry_Tests.cs (1)
67private readonly TargetLoggingContext _targetLoggingContext;