5 types derived from LoggingContext
Microsoft.Build (3)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
20internal class BuildLoggingContext : LoggingContext
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
18internal class EvaluationLoggingContext : LoggingContext
Instance\ProjectInstance.cs (1)
3462internal class GenericLoggingContext : LoggingContext
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
14internal sealed class MockLoggingContext : LoggingContext
TestLoggingContext.cs (1)
9internal sealed class TestLoggingContext : LoggingContext
112 references to LoggingContext
Microsoft.Build (99)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
38/// <inheritdoc cref="LoggingContext"/>
BackEnd\Components\Logging\LoggingContext.cs (1)
61public LoggingContext(LoggingContext baseContext, BuildEventContext newEventContext)
BackEnd\Components\RequestBuilder\AssemblyLoadsTracker.cs (5)
23private readonly LoggingContext? _loggingContext; 30LoggingContext? loggingContext, 44LoggingContext loggingContext, 51LoggingContext loggingContext, 102LoggingContext? loggingContext,
BackEnd\Components\RequestBuilder\BatchingEngine.cs (3)
85LoggingContext loggingContext) 106LoggingContext loggingContext) 305LoggingContext loggingContext)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (3)
154private void ExecuteAdd(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 297private void ExecuteModify(ProjectItemGroupTaskItemInstance child, ItemBucket bucket, ISet<string> keepMetadata, ISet<string> removeMetadata, LoggingContext loggingContext = null) 387LoggingContext loggingContext = null)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupLoggingHelper.cs (1)
257LoggingContext loggingContext,
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
109internal void Initialize(LoggingContext loggingContext)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
822LoggingContext loggingContext = ((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext; 838(((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext).LogError(BuildEventFileInfo.Empty, "UnhandledMSBuildError", ex.ToString());
BackEnd\Components\RequestBuilder\TargetEntry.cs (1)
175LoggingContext 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)
52public 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)
39/// <param name="loggingContext">The <see cref="LoggingContext"/> to use when logging messages during resolution.</param> 47SdkResult 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) 118private SdkResult RequestSdkPathFromMainNode(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio)
BackEnd\Components\SdkResolution\SdkLogger.cs (2)
18private readonly LoggingContext _loggingContext; 20public SdkLogger(LoggingContext loggingContext)
BackEnd\Components\SdkResolution\SdkResolverService.cs (5)
111public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 170private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 262private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 292LoggingContext loggingContext, 431private 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)
4271public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 4447public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false) 4460public 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)
699internal static string[] GetTaskFiles(DirectoryGetFiles getFiles, LoggingContext loggingContext, string taskPattern, string searchPath, string taskFileWarning) 834internal TaskRegistry GetTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 860internal TaskRegistry GetOverrideTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 879private void RegisterDefaultTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 902private void InitializeProperties(LoggingContext loggingContext) 985private void RegisterOverrideTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 1043private void LoadAndRegisterFromTasksFile(string[] defaultTaskFiles, LoggingContext loggingContext, string taskFileError, ProjectRootElementCacheBase projectRootElementCache, TaskRegistry registry)
Evaluation\ConditionEvaluator.cs (2)
189LoggingContext? loggingContext, 223LoggingContext? loggingContext,
Evaluation\Expander.cs (16)
310private readonly LoggingContext _loggingContext; 317private Expander(IPropertyProvider<P> properties, LoggingContext loggingContext) 328internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 350LoggingContext loggingContext) 361internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 372internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 382internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 409LoggingContext loggingContext) 420internal Expander<P, I> WithLoggingContext(LoggingContext loggingContext) 926internal static string ExpandMetadataLeaveEscaped(string expression, IMetadataTable metadata, ExpanderOptions options, IElementLocation elementLocation, LoggingContext loggingContext = null) 1049private LoggingContext _loggingContext; 1058LoggingContext loggingContext) 3212public LoggingContext LoggingContext { get; set; } 3285private readonly LoggingContext _loggingContext; 3300LoggingContext loggingContext) 3343LoggingContext loggingContext)
Evaluation\Expander\WellKnownFunctions.cs (1)
895internal static bool TryExecuteWellKnownFunctionWithPropertiesParam<T>(string methodName, Type receiverType, LoggingContext loggingContext,
Evaluation\IEvaluatorData.cs (3)
216void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext); 271P SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, BackEnd.Logging.LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false); 276P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext);
Evaluation\IntrinsicFunctions.cs (1)
715public 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)
294public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 309public P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext) 314public 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) 158public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) => _wrapped.InitializeForEvaluation(toolsetProvider, evaluationContext, loggingContext); 256LoggingContext loggingContext) 449LoggingContext loggingContext)
Instance\ProjectInstance.cs (4)
1686InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 1794ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable, bool isCommandLineProperty) 1807ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 3066private 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\TaskRegistry.cs (3)
252LoggingContext loggingContext, 285LoggingContext loggingContext, 694LoggingContext loggingContext,
TelemetryInfra\ITelemetryForwarder.cs (1)
30void FinalizeProcessing(LoggingContext loggingContext);
TelemetryInfra\TelemetryForwarderProvider.cs (2)
74public void FinalizeProcessing(LoggingContext loggingContext) 89public void FinalizeProcessing(LoggingContext loggingContext) { }
Microsoft.Build.Engine.UnitTests (13)
BackEnd\MockSdkResolverService.cs (1)
27public 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)