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)
3456internal class GenericLoggingContext : LoggingContext
Microsoft.Build.Engine.UnitTests (2)
MockLoggingContext.cs (1)
14internal sealed class MockLoggingContext : LoggingContext
TestLoggingContext.cs (1)
14internal sealed class TestLoggingContext : LoggingContext
107 references to LoggingContext
Microsoft.Build (94)
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)
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) 261private List<SdkResolver> GetResolvers(IList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 291LoggingContext loggingContext, 422private static void LogWarnings(LoggingContext loggingContext, ElementLocation location, IEnumerable<string> warnings)
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
488public 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)
4264public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 4440public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false) 4453public 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)
689internal static string[] GetTaskFiles(DirectoryGetFiles getFiles, LoggingContext loggingContext, string taskPattern, string searchPath, string taskFileWarning) 824internal TaskRegistry GetTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 850internal TaskRegistry GetOverrideTaskRegistry(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 869private void RegisterDefaultTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 892private void InitializeProperties(LoggingContext loggingContext) 975private void RegisterOverrideTasks(LoggingContext loggingContext, ProjectRootElementCacheBase projectRootElementCache) 1033private void LoadAndRegisterFromTasksFile(string[] defaultTaskFiles, LoggingContext loggingContext, string taskFileError, ProjectRootElementCacheBase projectRootElementCache, TaskRegistry registry)
Evaluation\ConditionEvaluator.cs (2)
190LoggingContext? loggingContext, 224LoggingContext? loggingContext,
Evaluation\Expander.cs (16)
314private readonly LoggingContext _loggingContext; 321private Expander(IPropertyProvider<P> properties, LoggingContext loggingContext) 332internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 354LoggingContext loggingContext) 365internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 376internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 386internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 413LoggingContext loggingContext) 424internal Expander<P, I> WithLoggingContext(LoggingContext loggingContext) 930internal static string ExpandMetadataLeaveEscaped(string expression, IMetadataTable metadata, ExpanderOptions options, IElementLocation elementLocation, LoggingContext loggingContext = null) 1053private LoggingContext _loggingContext; 1062LoggingContext loggingContext) 3193public LoggingContext LoggingContext { get; set; } 3266private readonly LoggingContext _loggingContext; 3281LoggingContext loggingContext) 3324LoggingContext 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); 276P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, BackEnd.Logging.LoggingContext loggingContext);
Evaluation\IntrinsicFunctions.cs (1)
696public 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)
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 (4)
90public P SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false) 112public P SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 151public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) => _wrapped.InitializeForEvaluation(toolsetProvider, evaluationContext, loggingContext); 252LoggingContext 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) 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)
253LoggingContext loggingContext, 286LoggingContext loggingContext, 687LoggingContext 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)
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)