3 types derived from LoggingContext
Microsoft.Build (3)
BackEnd\Components\Logging\BuildLoggingContext.cs (1)
18internal class BuildLoggingContext : LoggingContext
BackEnd\Components\Logging\EvaluationLoggingContext.cs (1)
15internal class EvaluationLoggingContext : LoggingContext
Instance\ProjectInstance.cs (1)
3559internal class GenericLoggingContext : LoggingContext
100 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) 302LoggingContext 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)
103internal 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)
113public virtual SdkResult ResolveSdk(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 172private SdkResult ResolveSdkUsingResolversWithPatternsFirst(int submissionId, SdkReference sdk, LoggingContext loggingContext, ElementLocation sdkReferenceLocation, string solutionPath, string projectPath, bool interactive, bool isRunningInVisualStudio, bool failOnUnresolvedSdk) 273private List<SdkResolver> GetResolvers(IReadOnlyList<SdkResolverManifest> resolversManifests, LoggingContext loggingContext, ElementLocation sdkReferenceLocation) 301LoggingContext loggingContext, 440private 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)
4277public void InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 4479public ProjectProperty SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable = false, bool isCommandLineProperty = false) 4492public 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)
188LoggingContext? loggingContext, 222LoggingContext? loggingContext,
Evaluation\Expander.cs (9)
76private readonly LoggingContext _loggingContext; 83private Expander(IPropertyProvider<P> properties, LoggingContext loggingContext) 94internal Expander(IPropertyProvider<P> properties, IFileSystem fileSystem, LoggingContext loggingContext) 116LoggingContext loggingContext) 127internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IFileSystem fileSystem, LoggingContext loggingContext) 138internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, EvaluationContext evaluationContext, LoggingContext loggingContext) 148internal Expander(IPropertyProvider<P> properties, IItemProvider<I> items, IMetadataTable metadata, IFileSystem fileSystem, LoggingContext loggingContext) 175LoggingContext loggingContext) 186internal Expander<P, I> WithLoggingContext(LoggingContext loggingContext)
Evaluation\Expander.Function.cs (3)
85private readonly LoggingContext _loggingContext; 100LoggingContext loggingContext) 143LoggingContext loggingContext)
Evaluation\Expander.FunctionBuilder.cs (1)
56public LoggingContext LoggingContext { get; set; }
Evaluation\Expander.MetadataExpander.cs (3)
26private readonly LoggingContext? _loggingContext; 33LoggingContext? loggingContext, 60LoggingContext? loggingContext = null)
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)
1780InitializeForEvaluation(IToolsetProvider toolsetProvider, EvaluationContext evaluationContext, LoggingContext loggingContext) 1880ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(string name, string evaluatedValueEscaped, bool isGlobalProperty, bool mayBeReserved, LoggingContext loggingContext, bool isEnvironmentVariable, bool isCommandLineProperty) 1893ProjectPropertyInstance IEvaluatorData<ProjectPropertyInstance, ProjectItemInstance, ProjectMetadataInstance, ProjectItemDefinitionInstance>.SetProperty(ProjectPropertyElement propertyElement, string evaluatedValueEscaped, LoggingContext loggingContext) 3166private 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)
237LoggingContext targetLoggingContext,
Instance\TaskRegistry.cs (3)
243LoggingContext loggingContext, 276LoggingContext loggingContext, 680LoggingContext loggingContext,
TelemetryInfra\ITelemetryCollector.cs (1)
35void FinalizeProcessing(LoggingContext loggingContext);
TelemetryInfra\TelemetryCollectorProvider.cs (2)
64public void FinalizeProcessing(LoggingContext loggingContext) 90public void FinalizeProcessing(LoggingContext loggingContext) { }