5 types derived from LoggingContext
Microsoft.Build (3)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
18internal class BuildLoggingContext : LoggingContext
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
16internal class EvaluationLoggingContext : LoggingContext
Instance\ProjectInstance.cs (1)
3574internal class GenericLoggingContext : LoggingContext
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
14internal sealed class MockLoggingContext : LoggingContext
TestLoggingContext.cs (1)
9internal sealed class TestLoggingContext : LoggingContext
113 references to LoggingContext
Microsoft.Build (100)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
36/// <inheritdoc cref="LoggingContext"/>
BackEnd\Components\Logging\LoggingContext.cs (1)
61public LoggingContext(LoggingContext baseContext, BuildEventContext newEventContext)
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (5)
18private readonly LoggingContext? _loggingContext; 25LoggingContext? loggingContext, 39LoggingContext loggingContext, 46LoggingContext loggingContext, 77LoggingContext? loggingContext,
BackEnd\Components\RequestBuilder\BatchingEngine.cs (3)
89LoggingContext loggingContext) 110LoggingContext loggingContext) 309LoggingContext loggingContext)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
156private void ExecuteAdd(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 299private void ExecuteModify(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 396LoggingContext loggingContext = null)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
257LoggingContext loggingContext,
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
104internal void Initialize(LoggingContext loggingContext)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
825LoggingContext loggingContext = ((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext; 841(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(BuildEventFileInfo.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
170LoggingContext loggingContext,
BackEnd\Components\SdkResolution\CachingSdkResolverService.cs (1)
38public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\Components\SdkResolution\HostedSdkResolverServiceBase.cs (1)
56public abstract SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\ISdkResolverService.cs (2)
44/// <param name="loggingContext">The <see cref="LoggingContext"/> to use when logging messages during resolution.</param> 52SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk);
BackEnd\Components\SdkResolution\MainNodeSdkResolverService.cs (1)
99public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (2)
67public override SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 123private SdkResult RequestSdkPathFromMainNode(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkLogger.cs (2)
16private readonly LoggingContext _loggingContext; 18public SdkLogger(LoggingContext loggingContext)
BackEnd\Components\SdkResolution\SdkResolverService.cs (5)
114public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 173private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 274private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 302LoggingContext loggingContext, 441private static void LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable<string> warnings)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
527public void FinalizeProcessing(LoggingContext loggingContext)
BuildCheck\Infrastructure\IBuildCheckManager.cs (1)
66void FinalizeProcessing(LoggingContext loggingContext);
BuildCheck\Infrastructure\NullBuildCheckManager.cs (1)
54public void FinalizeProcessing(LoggingContext loggingContext)
Definition\Project.cs (3)
4288public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 4490public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false) 4503public ProjectProperty SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext)
Definition\ProjectProperty.cs (3)
279internal static ProjectProperty Create(Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext = null) 675internal LoggingContext loggingContext; 678Project project, string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext)
Definition\Toolset.cs (7)
580internal static string[] GetTaskFiles(DirectoryGetFiles getFiles, LoggingContext loggingContext, string taskPattern, string searchPath, string taskFileWarning) 715internal TaskRegistry GetTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 741internal TaskRegistry GetOverrideTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 760private void RegisterDefaultTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 790private void InitializeProperties(LoggingContext loggingContext) 873private void RegisterOverrideTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 938private void LoadAndRegisterFromTasksFile(string[] defaultTaskFiles, LoggingContext loggingContext, string taskFileError, ProjectRootElementCacheBase projectRootElementCache, TaskRegistry registry)
Evaluation\ConditionEvaluator.cs (2)
189LoggingContext? loggingContext, 223LoggingContext? loggingContext,
Evaluation\Expander.cs (16)
317private readonly LoggingContext _loggingContext; 324private Expander(IPropertyProvider<P> properties, LoggingContext loggingContext) 335internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 357LoggingContext loggingContext) 368internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 379internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 389internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 416LoggingContext loggingContext) 427internal Expander<P, I> WithLoggingContext(LoggingContext loggingContext) 974internal static string ExpandMetadataLeaveEscaped(string expression, IMetadataTable metadata, ExpanderOptions options, IElementLocation elementLocation, LoggingContext loggingContext = null) 1137private LoggingContext _loggingContext; 1146LoggingContext loggingContext) 3701public LoggingContext LoggingContext { get; set; } 3774private readonly LoggingContext _loggingContext; 3789LoggingContext loggingContext) 3832LoggingContext loggingContext)
Evaluation\Expander\WellKnownFunctions.cs (1)
944internal static bool TryExecuteWellKnownFunctionWithPropertiesParam<T>(string methodName, Type receiverType, LoggingContext loggingContext,
Evaluation\IEvaluatorData.cs (3)
228void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext); 283P SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, BackEnd.Logging.LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false); 288P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext);
Evaluation\IntrinsicFunctions.cs (1)
735public static bool RegisterBuildCheck(string projectPath, string pathToAssembly, LoggingContext loggingContext)
Evaluation\LazyItemEvaluator.cs (2)
37private readonly LoggingContext _loggingContext; 52public LazyItemEvaluator(IEvaluatorData<P, I, M, D> data, IItemFactory<I, I> itemFactory, LoggingContext loggingContext, EvaluationProfiler evaluationProfiler, EvaluationContext evaluationContext)
Evaluation\LazyItemEvaluator.EvaluatorData.cs (3)
214public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 229public P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext) 234public P SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false)
Evaluation\PropertiesUseTracker.cs (3)
24internal LoggingContext? LoggingContext { get; init; } 26public PropertiesUseTracker(LoggingContext? loggingContext) => LoggingContext = loggingContext; 129internal void CheckPreexistingUndefinedUsage(IPropertyElementWithLocation propertyElement, string evaluatedValue, LoggingContext loggingContext)
Evaluation\PropertyTrackingEvaluatorDataWrapper.cs (5)
95LoggingContext loggingContext, 119public P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 170public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) => _wrapped.InitializeForEvaluation(toolsetProvider, evaluationContext, loggingContext); 268LoggingContext loggingContext) 461LoggingContext loggingContext)
Instance\ProjectInstance.cs (4)
1787InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 1895ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable, bool isCommandLineProperty) 1908ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 3181private LoggingContext _loggingContext;
Instance\ProjectPropertyInstance.cs (4)
226internal static ProjectPropertyInstance Create(string name, string escapedValue, bool mayBeReserved, bool isImmutable, bool isEnvironmentProperty = false, LoggingContext loggingContext = null) 322private static ProjectPropertyInstance Create(string name, string escapedValue, bool mayBeReserved, ElementLocation location, bool isImmutable, bool isEnvironmentProperty = false, LoggingContext loggingContext = null) 373internal EnvironmentDerivedProjectPropertyInstance(string name, string escapedValue, LoggingContext loggingContext) 390internal LoggingContext loggingContext;
Instance\TaskFactories\AssemblyTaskFactory.cs (1)
249LoggingContext targetLoggingContext,
Instance\TaskRegistry.cs (3)
243LoggingContext loggingContext, 276LoggingContext loggingContext, 680LoggingContext loggingContext,
TelemetryInfra\ITelemetryCollector.cs (1)
35void FinalizeProcessing(LoggingContext loggingContext);
TelemetryInfra\TelemetryCollectorProvider.cs (2)
65public void FinalizeProcessing(LoggingContext loggingContext) 91public void FinalizeProcessing(LoggingContext loggingContext) { }
Microsoft.Build.Engine.UnitTests (13)
BackEnd\MockSdkResolverService.cs (1)
29public Build.BackEnd.SdkResolution.SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk)
BackEnd\SdkResolverService_Tests.cs (1)
31private readonly LoggingContext _loggingContext;
Definition\ToolsVersion_Tests.cs (10)
38LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 84LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 104LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 123LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 143LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 167LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 193LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 218LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 239LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 934LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4));
TestLoggingContext.cs (1)
17public static LoggingContext CreateTestContext(BuildEventContext buildEventContext)