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)
3457internal class GenericLoggingContext : LoggingContext
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
14internal sealed class MockLoggingContext : LoggingContext
TestLoggingContext.cs (1)
14internal 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)
258LoggingContext loggingContext,
BackEnd\Components\RequestBuilder\ItemBucket.cs (1)
110internal void Initialize(LoggingContext loggingContext)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (3)
823LoggingContext loggingContext = ((LoggingContext)_projectLoggingContext) ?? _nodeLoggingContext; 839(((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)
526public 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)
4265public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 4441public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false) 4454public 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)
698internal static string[] GetTaskFiles(DirectoryGetFiles getFiles, LoggingContext loggingContext, string taskPattern, string searchPath, string taskFileWarning) 833internal TaskRegistry GetTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 859internal TaskRegistry GetOverrideTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 878private void RegisterDefaultTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 901private void InitializeProperties(LoggingContext loggingContext) 984private void RegisterOverrideTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 1042private void LoadAndRegisterFromTasksFile(string[] defaultTaskFiles, LoggingContext loggingContext, string taskFileError, ProjectRootElementCacheBase projectRootElementCache, TaskRegistry registry)
Evaluation\ConditionEvaluator.cs (2)
190LoggingContext? loggingContext, 224LoggingContext? loggingContext,
Evaluation\Expander.cs (16)
316private readonly LoggingContext _loggingContext; 323private Expander(IPropertyProvider<P> properties, LoggingContext loggingContext) 334internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 356LoggingContext loggingContext) 367internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 378internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 388internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 415LoggingContext loggingContext) 426internal Expander<P, I> WithLoggingContext(LoggingContext loggingContext) 932internal static string ExpandMetadataLeaveEscaped(string expression, IMetadataTable metadata, ExpanderOptions options, IElementLocation elementLocation, LoggingContext loggingContext = null) 1055private LoggingContext _loggingContext; 1064LoggingContext loggingContext) 3231public LoggingContext LoggingContext { get; set; } 3304private readonly LoggingContext _loggingContext; 3319LoggingContext loggingContext) 3362LoggingContext loggingContext)
Evaluation\Expander\WellKnownFunctions.cs (1)
900internal 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)
716public 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) 3061private 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)
254LoggingContext loggingContext, 287LoggingContext loggingContext, 696LoggingContext 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)
33private readonly LoggingContext _loggingContext;
Definition\ToolsVersion_Tests.cs (10)
40LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 86LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 106LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 125LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 145LoggingContext loggingContext = new TestLoggingContext(service, new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 169LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4)); 195LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 220LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 241LoggingContext loggingContext = new TestLoggingContext(service, BuildEventContext.Invalid); 936LoggingContext loggingContext = TestLoggingContext.CreateTestContext(new BuildEventContext(1, 2, BuildEventContext.InvalidProjectContextId, 4));
TestLoggingContext.cs (1)
22public static LoggingContext CreateTestContext(BuildEventContext buildEventContext)