1031 references to MessageImportance
Crossgen2Tasks (9)
ILLink.Tasks (3)
installer.tasks (8)
Microsoft.Build (205)
BackEnd\BuildManager\BuildManager.cs (7)
397public MessageImportance Importance { get; }
403public DeferredBuildMessage(string text, MessageImportance importance)
410public DeferredBuildMessage(string text, MessageImportance importance, string filePath)
573loggingService.LogComment(buildEventContext: BuildEventContext.Invalid, MessageImportance.Normal, "BuildCheckEnabled");
642loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "UsingInputCaches", string.Join(";", _buildParameters.InputResultsCacheFiles));
647loggingService.LogComment(BuildEventContext.Invalid, MessageImportance.Normal, "WritingToOutputCache", _buildParameters.OutputResultsCacheFile);
3225loggingService?.LogCommentFromText(BuildEventContext.Invalid, MessageImportance.High, message);
BackEnd\Components\ProjectCache\ProjectCacheService.cs (13)
254_loggingService.LogComment(buildEventContext, MessageImportance.High, "LoadingProjectCachePlugin", pluginTypeName);
517_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithDefaultTargets", buildRequest.ProjectFullPath);
521_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheQueryStartedWithTargetNames", buildRequest.ProjectFullPath, targetNames);
579_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithDefaultTargets", buildRequest.ProjectFullPath);
583_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheHitWithTargetNames", buildRequest.ProjectFullPath, targetNames);
590_loggingService.LogComment(buildEventContext, MessageImportance.High, "ProjectCacheHitWithOutputs", buildRequest.ProjectInstance!.GetPropertyValue(ReservedPropertyNames.projectName));
597_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithDefaultTargets", buildRequest.ProjectFullPath);
601_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheMissWithTargetNames", buildRequest.ProjectFullPath, targetNames);
608_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithDefaultTargets", buildRequest.ProjectFullPath);
612_loggingService.LogComment(buildEventContext, MessageImportance.Normal, "ProjectCacheNotApplicableWithTargetNames", buildRequest.ProjectFullPath, targetNames);
819_loggingService.LogComment(buildEventContext, MessageImportance.Low, "ProjectCacheEndBuild");
907public override void LogMessage(string message, MessageImportance? messageImportance = null)
911messageImportance ?? MessageImportance.Normal,
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (9)
258Log.LogMessageFromResources(MessageImportance.Low, "General.UndefineProperties");
262Log.LogMessageFromText(String.Format(CultureInfo.InvariantCulture, " {0}", property), MessageImportance.Low);
273Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NotBuildingInParallel");
283Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NoStopOnFirstFailure");
322Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingProjects");
385Log.LogMessageFromResources(MessageImportance.High, "MSBuild.ProjectFileNotFoundMessage", project.ItemSpec);
593log.LogMessageFromResources(MessageImportance.Low, "General.ProjectUndefineProperties", projectNames[i]);
597log.LogMessageFromText(String.Format(CultureInfo.InvariantCulture, " {0}", property), MessageImportance.Low);
649log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingTargets");
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (11)
244Importance = MessageImportance.Normal
281_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name);
287_loggingService.LogCommentFromText(_buildEventContext, MessageImportance.Low, reason);
299_loggingService.LogComment(_buildEventContext, MessageImportance.Normal, "BuildTargetPartially", _targetToAnalyze.Name);
304_loggingService.LogCommentFromText(_buildEventContext, MessageImportance.Low, reason);
455_loggingService.LogComment(_buildEventContext, MessageImportance.Normal,
458_loggingService.LogComment(_buildEventContext, MessageImportance.Low,
467_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletely", _targetToAnalyze.Name);
468_loggingService.LogComment(_buildEventContext, MessageImportance.Low, "BuildTargetCompletelyNoInputsSpecified");
496_loggingService.LogComment(_buildEventContext, MessageImportance.Normal,
499_loggingService.LogComment(_buildEventContext, MessageImportance.Low,
BackEnd\Components\RequestBuilder\TaskHost.cs (7)
460_taskLoggingContext.LoggingService.LogComment(_taskLoggingContext.BuildEventContext, MessageImportance.Normal, "ErrorConvertedIntoWarning");
846LoggingContext.LogComment(MessageImportance.Low, "TaskAcquiredCores", _taskLoggingContext.TaskName,
886LoggingContext.LogComment(MessageImportance.Low, "TaskReleasedCores", _taskLoggingContext.TaskName,
891LoggingContext.LogComment(MessageImportance.Low, "TaskReleasedCoresWarning", _taskLoggingContext.TaskName,
925public override bool LogsMessagesOfImportance(MessageImportance importance)
935MessageImportance minimumImportance = _taskHost._taskLoggingContext?.LoggingService.MinimumRequiredMessageImportance ?? MessageImportance.Low;
BackEnd\Components\Scheduler\Scheduler.cs (7)
559loggingService.LogComment(context, MessageImportance.Normal, "DetailedSummaryHeader");
565loggingService.LogComment(context, MessageImportance.Normal, "BuildHierarchyHeader");
1980MessageImportance.Normal,
2329loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationHeader", nodeIndices.ToString());
2422loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationSummary", utilitzationPercentages.ToString(), (utilizationAverage / (double)_availableNodes.Count) * 100);
2493loggingService.LogComment(context, MessageImportance.Normal, "NodeUtilizationEntry", stringBuilder, duration, accumulatedDuration, durationBar);
2527MessageImportance.Normal,
BackEnd\Components\Scheduler\SchedulingPlan.cs (4)
128loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CantWriteBuildPlan", planName));
174loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("CantReadBuildPlan", planName));
178loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildPlanCorrupt", planName));
182loggingService.LogCommentFromText(buildEventContext, MessageImportance.Low, ResourceUtilities.FormatResourceStringStripCodeAndKeyword("BuildPlanCorrupt", planName));
BackEnd\Components\SdkResolution\SdkResolverService.cs (4)
329loggingContext.LogComment(MessageImportance.Low, "SDKResolverNullMessage", sdkResolver.Name, sdk.ToString());
357loggingContext.LogComment(MessageImportance.Low, "SucceededToResolveSDK", sdk.ToString(), sdkResolver.Name, result.Path ?? "null", result.Version ?? "null");
373else if (loggingContext.LoggingService.MinimumRequiredMessageImportance >= MessageImportance.Low)
378loggingContext.LogComment(MessageImportance.Low, "SDKResolverAttempt", sdkResolver.Name, sdk.ToString(), resultWarnings, resultErrors);
BackEnd\TaskExecutionHost\TaskExecutionHost.cs (4)
339_taskLoggingContext.LogComment(MessageImportance.Normal, "TaskAssemblyLocationMismatch", realTaskAssemblyLoaction, _taskFactoryWrapper.TaskFactoryLoadedType.Path);
1309MessageImportance.Low,
1494_taskLoggingContext.LogComment(MessageImportance.Low, "OutputPropertyLogMessage", outputTargetName, outputString);
1581_taskLoggingContext.LogComment(MessageImportance.Low, "OutputPropertyLogMessage", outputTargetName, outputString);
Evaluation\Evaluator.cs (6)
1039_evaluationLoggingContext.LogComment(MessageImportance.Low, "OverridingTarget", otherTarget.Name, otherTarget.Location.File, targetName, targetElement.Location.File);
1078_evaluationLoggingContext.LogComment(MessageImportance.Low, "TargetDoesNotExistBeforeTargetMessage", unescapedBeforeTarget, targetElement.BeforeTargetsLocation.LocationString);
1101_evaluationLoggingContext.LogComment(MessageImportance.Low, "TargetDoesNotExistAfterTargetMessage", unescapedAfterTarget, targetElement.AfterTargetsLocation.LocationString);
1286_evaluationLoggingContext.LogComment(MessageImportance.Low, "OM_GlobalProperty", propertyElement.Name);
1561_evaluationLoggingContext.LogComment(MessageImportance.Low, "SearchPathsForMSBuildExtensionsPath",
1604_evaluationLoggingContext.LogComment(MessageImportance.Low, "TryingExtensionsPath", newExpandedImportPath, extensionPathExpanded);
Instance\ProjectInstance.cs (4)
2564loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedExplicitToolsVersion", toolsVersion);
2627loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedOldSolutionVersion", "2.0", solutionVersion);
2632loggingService.LogComment(projectBuildEventContext, MessageImportance.Low, "OldWrapperGeneratedOldSolutionVersion", "3.5", solutionVersion);
2891loggingService.LogCommentFromText(projectBuildEventContext, MessageImportance.Low, comment);
Instance\TaskRegistry.cs (5)
485targetLoggingContext.LogComment(MessageImportance.Low, "TaskFound", taskName, taskFactory.Name);
489targetLoggingContext.LogComment(MessageImportance.Low, "TaskFoundFromFactory", taskName, taskFactory.Name);
494targetLoggingContext.LogComment(MessageImportance.Low, "TaskNeedsSTA", taskName);
744loggingContext.LogComment(MessageImportance.Low, "OverrideUsingTaskElementCreated", taskName, projectUsingTaskInXml.OverrideLocation);
1428targetLoggingContext.LogComment(MessageImportance.Low, "InitializingTaskFactory", TaskFactoryAttributeName, taskFactoryLoadInfo.AssemblyLocation);
PlatformNegotiation.cs (7)
53log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform);
59log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.SamePlatform");
68log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, projectReferenceLookupTableMetadata);
76log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, platformLookupTable);
82log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.AnyCPUDefault");
94log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform);
122log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.LookupTableParsed", stringTable);
TaskLoggingHelper.cs (14)
256public bool LogsMessagesOfImportance(MessageImportance importance)
275Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?");
277LogMessage(MessageImportance.Normal, message, messageArgs);
291public void LogMessage(MessageImportance importance, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object[] messageArgs)
359MessageImportance importance,
470Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?");
472LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs);
486public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs)
592LogCommandLine(MessageImportance.Low, commandLine);
602public void LogCommandLine(MessageImportance importance, string commandLine)
1307return LogMessagesFromFile(fileName, MessageImportance.Low);
1319public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance)
1346public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance)
1374public bool LogMessageFromText(string lineOfText, MessageImportance messageImportance)
Microsoft.Build.CommandLine.UnitTests (45)
TerminalLogger_Tests.cs (15)
200private BuildMessageEventArgs MakeMessageEventArgs(string message, MessageImportance importance)
208private BuildMessageEventArgs MakeTaskCommandLineEventArgs(string message, MessageImportance importance)
216private BuildMessageEventArgs MakeExtendedMessageEventArgs(string message, MessageImportance importance, string extendedType, Dictionary<string, string?>? extendedMetadata)
354MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs(_immediateMessageString, MessageImportance.High));
365MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("--anycustomarg", MessageImportance.High));
481MessageImportance.High);
496MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs(_immediateMessageString, MessageImportance.High));
497MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("High importance message!", MessageImportance.High));
498MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Normal importance message!", MessageImportance.Normal));
499MessageRaised?.Invoke(_eventSender, MakeMessageEventArgs("Low importance message!", MessageImportance.Low));
509MessageImportance.High,
514MessageImportance.High,
519MessageImportance.High,
610MessageRaised?.Invoke(_eventSender, MakeTaskCommandLineEventArgs("Task Command Line.", MessageImportance.High));
625MessageRaised?.Invoke(_eventSender, MakeTaskCommandLineEventArgs("Task Command Line.", MessageImportance.High));
XMake_Tests.cs (29)
2625bool shouldLogHigh = Log.LogsMessagesOfImportance(MessageImportance.High);
2626bool shouldLogNormal = Log.LogsMessagesOfImportance(MessageImportance.Normal);
2627bool shouldLogLow = Log.LogsMessagesOfImportance(MessageImportance.Low);
2628return (MessageImportance)ExpectedMinimumMessageImportance switch
2630MessageImportance.High - 1 => !shouldLogHigh && !shouldLogNormal && !shouldLogLow,
2631MessageImportance.High => shouldLogHigh && !shouldLogNormal && !shouldLogLow,
2632MessageImportance.Normal => shouldLogHigh && shouldLogNormal && !shouldLogLow,
2633MessageImportance.Low => shouldLogHigh && shouldLogNormal && shouldLogLow,
2675[InlineData("/v:diagnostic", MessageImportance.Low)]
2676[InlineData("/v:detailed", MessageImportance.Low)]
2677[InlineData("/v:normal", MessageImportance.Normal)]
2678[InlineData("/v:minimal", MessageImportance.High)]
2679[InlineData("/v:quiet", MessageImportance.High - 1)]
2681[InlineData("/v:diagnostic /bl", MessageImportance.Low)]
2682[InlineData("/v:detailed /bl", MessageImportance.Low)]
2683[InlineData("/v:normal /bl", MessageImportance.Low)] // v:normal but with binary logger so everything must be logged
2684[InlineData("/v:minimal /bl", MessageImportance.Low)] // v:minimal but with binary logger so everything must be logged
2685[InlineData("/v:quiet /bl", MessageImportance.Low)] // v:quiet but with binary logger so everything must be logged
2687[InlineData("/v:diagnostic /check", MessageImportance.Low)]
2688[InlineData("/v:detailed /check", MessageImportance.Low)]
2689[InlineData("/v:normal /check", MessageImportance.Normal)]
2690[InlineData("/v:minimal /check", MessageImportance.High)]
2691[InlineData("/v:quiet /check", MessageImportance.High)]
2693[InlineData("/v:diagnostic /tl", MessageImportance.Low)]
2694[InlineData("/v:detailed /tl", MessageImportance.Low)]
2695[InlineData("/v:normal /tl", MessageImportance.Normal)]
2696[InlineData("/v:minimal /tl", MessageImportance.High)]
2697[InlineData("/v:quiet /tl", MessageImportance.High - 1)]
2698public void EndToEndMinimumMessageImportance(string arguments, MessageImportance expectedMinimumMessageImportance)
Microsoft.Build.Engine.UnitTests (129)
BackEnd\LoggingServicesLogMethod_Tests.cs (13)
67BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High);
680service.LogComment(s_buildEventContext, MessageImportance.Low, null, null);
693service.LogComment(s_buildEventContext, MessageImportance.Low, String.Empty, null);
704MessageImportance messageImportance = MessageImportance.Normal;
716service.LogComment(s_buildEventContext, MessageImportance.Normal, "BuildFinishedSuccess");
733service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, null);
744service.LogCommentFromText(s_buildEventContext, MessageImportance.Low, string.Empty);
756service.LogCommentFromText(null, MessageImportance.Low, "Hello");
766MessageImportance messageImportance = MessageImportance.Normal;
775service.LogCommentFromText(s_buildEventContext, MessageImportance.Normal, ResourceUtilities.GetResourceString("BuildFinishedSuccess"));
1705private void VerityBuildMessageEventArgs(ProcessBuildEventHelper service, MessageImportance messageImportance, string message)
BackEnd\NodePackets_Tests.cs (14)
50BuildMessageEventArgs lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low);
53TaskCommandLineEventArgs commandLine = new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low);
69ExtendedBuildMessageEventArgs extMessage = new("extMsg", "SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender", MessageImportance.Normal);
73PropertyInitialValueSetEventArgs propInit = new("prop", "val", "propsource", "message", "help", "sender", MessageImportance.Normal);
75PropertyReassignmentEventArgs propReassign = new("prop", "prevValue", "newValue", "loc", "message", "help", "sender", MessageImportance.Normal);
77UninitializedPropertyReadEventArgs uninitializedPropertyRead = new("prop", "message", "help", "sender", MessageImportance.Normal);
231Importance = MessageImportance.Normal,
261new UninitializedPropertyReadEventArgs("prop", "message", "help", "sender", MessageImportance.Normal),
263new PropertyReassignmentEventArgs("prop", "prevValue", "newValue", "loc", "message", "help", "sender", MessageImportance.Normal),
264new PropertyInitialValueSetEventArgs("prop", "val", "propsource", "message", "help", "sender", MessageImportance.Normal),
269new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low),
276new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low),
288new AssemblyLoadBuildEventArgs(AssemblyLoadingContext.Evaluation, "init", "aname", "path", Guid.NewGuid(), "domain", MessageImportance.Normal),
302new ExtendedBuildMessageEventArgs("extWarn", "SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender", MessageImportance.Normal, DateTime.UtcNow, "arg1")
BackEnd\TaskHost_Tests.cs (5)
309_taskHost.LogMessageEvent(new BuildMessageEventArgs("message", "HelpKeyword", "senderName", MessageImportance.High));
313Assert.Equal(MessageImportance.High, _customLogger.LastMessage.Importance); // "Expected Message importance to be high"
436_taskHost.LogMessageEvent(new ExtendedBuildMessageEventArgs("testExtCustomBuildMessage", "ext message", null, null, MessageImportance.Normal));
864: base(message, null, null, MessageImportance.High)
995: base(message, null, null, MessageImportance.High)
ConfigureableForwardingLogger_Tests.cs (4)
20private readonly BuildMessageEventArgs _lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low);
21private readonly BuildMessageEventArgs _normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal);
22private readonly BuildMessageEventArgs _highMessage = new BuildMessageEventArgs("Message3", "help", "sender", MessageImportance.High);
25private readonly TaskCommandLineEventArgs _commandLine = new TaskCommandLineEventArgs("commandLine", "taskName", MessageImportance.Low);
ConsoleLogger_Tests.cs (31)
468es.Consume(new BuildMessageEventArgs(null, null, null, MessageImportance.High));
500BuildMessageEventArgs bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.High);
577[InlineData(LoggerVerbosity.Quiet, MessageImportance.Low, false)]
578[InlineData(LoggerVerbosity.Quiet, MessageImportance.Normal, false)]
579[InlineData(LoggerVerbosity.Quiet, MessageImportance.High, false)]
581[InlineData(LoggerVerbosity.Minimal, MessageImportance.Low, false)]
582[InlineData(LoggerVerbosity.Minimal, MessageImportance.Normal, false)]
583[InlineData(LoggerVerbosity.Minimal, MessageImportance.High, true)]
585[InlineData(LoggerVerbosity.Normal, MessageImportance.Low, false)]
586[InlineData(LoggerVerbosity.Normal, MessageImportance.Normal, true)]
587[InlineData(LoggerVerbosity.Normal, MessageImportance.High, true)]
589[InlineData(LoggerVerbosity.Detailed, MessageImportance.Low, true)]
590[InlineData(LoggerVerbosity.Detailed, MessageImportance.Normal, true)]
591[InlineData(LoggerVerbosity.Detailed, MessageImportance.High, true)]
593[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.Low, true)]
594[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.Normal, true)]
595[InlineData(LoggerVerbosity.Diagnostic, MessageImportance.High, true)]
597public void SingleMessageTest(LoggerVerbosity loggerVerbosity, MessageImportance messageImportance, bool shouldPrint)
673buildEventArgs = new BuildMessageEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, MessageImportance.Low);
739BuildMessageEventArgs bmea = new BuildMessageEventArgs("foo!", null, "sender", MessageImportance.High);
945BuildMessageEventArgs bmea = new BuildMessageEventArgs("foo!", null, "sender", MessageImportance.Normal);
2148BuildMessageEventArgs messsage1 = new BuildMessageEventArgs(null, null, null, MessageImportance.High);
2176BuildMessageEventArgs messsage2 = new BuildMessageEventArgs(null, null, null, MessageImportance.High);
2249TaskCommandLineEventArgs messsage1 = new TaskCommandLineEventArgs("Message", null, MessageImportance.High);
2263BuildMessageEventArgs messsage2 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
2277messsage2 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
2321BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
2359BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
2361BuildMessageEventArgs messsage2 = new BuildMessageEventArgs("Message2", null, null, MessageImportance.High);
2363BuildMessageEventArgs messsage3 = new BuildMessageEventArgs("Message3", null, null, MessageImportance.High);
2419BuildMessageEventArgs messsage1 = new BuildMessageEventArgs("Message", null, null, MessageImportance.High);
FileLogger_Tests.cs (8)
61SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
90SetUpFileLoggerAndLogMessage("logfile=||invalid||", new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
117fl.MessageHandler(null, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
219SetUpFileLoggerAndLogMessage("encoding=utf-16;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
246SetUpFileLoggerAndLogMessage("encoding=utf-8;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
296SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
320SetUpFileLoggerAndLogMessage("append;logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
345SetUpFileLoggerAndLogMessage("logfile=" + log, new BuildMessageEventArgs("message here", null, null, MessageImportance.High));
Microsoft.Build.Framework (42)
CriticalBuildMessageEventArgs.cs (1)
112: base(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName, MessageImportance.High, eventTimestamp, messageArgs)
ExtendedBuildMessageEventArgs.cs (6)
45public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance)
57public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp)
70public ExtendedBuildMessageEventArgs(string type, string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs)
89string? message, string? helpKeyword, string? senderName, MessageImportance importance)
109string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp)
130string? message, string? helpKeyword, string? senderName, MessageImportance importance, DateTime eventTimestamp, params object[]? messageArgs)
Microsoft.Build.Framework.UnitTests (35)
BuildMessageEventArgs_Tests.cs (12)
25bmea = new BuildMessageEventArgs("Message", "HelpKeyword", "Sender", MessageImportance.Low);
26bmea = new BuildMessageEventArgs("Message", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now);
27bmea = new BuildMessageEventArgs("{0}", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now, "Message");
28bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "Sender", MessageImportance.Low);
29bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now);
30bmea = new BuildMessageEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "Sender", MessageImportance.Low, DateTime.Now, "Message");
31bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low);
32bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low, DateTime.Now);
33bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.Low, DateTime.Now, null);
34bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low);
35bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low, DateTime.Now);
36bmea = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low, DateTime.Now, null);
CustomEventArgSerialization_Tests.cs (12)
260BuildMessageEventArgs genericEvent = new BuildMessageEventArgs("Message", "HelpKeyword", "SenderName", MessageImportance.High);
269BuildMessageEventArgs newGenericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low);
278genericEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, MessageImportance.Low);
287newGenericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low);
296genericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low);
305newGenericEvent = new BuildMessageEventArgs("Something", "Something", "Something", MessageImportance.Low);
330BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("SubCategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName", MessageImportance.High);
339BuildMessageEventArgs newMessageEvent = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low);
347messageEvent = new BuildMessageEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty, MessageImportance.Low);
356newMessageEvent = new BuildMessageEventArgs(null, null, null, 0, 0, 0, 0, null, null, null, MessageImportance.Low);
364messageEvent = new BuildMessageEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, MessageImportance.Low);
373newMessageEvent = new BuildMessageEventArgs("Something", "Something", "Something", 0, 0, 0, 0, "Something", "Something", "Something", MessageImportance.Low);
ExtendedBuildEventArgs_Tests.cs (7)
138importance: withOptionalData ? MessageImportance.Normal : default,
241ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High);
242ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now);
243ea = new ExtendedBuildMessageEventArgs("type", "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now, "arg1");
244ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", MessageImportance.High);
245ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now);
246ea = new ExtendedBuildMessageEventArgs("type", "Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", MessageImportance.High, DateTime.Now, "Message");
TaskCommandLineEventArgs_Tests.cs (4)
25taskCommandLineEvent = new TaskCommandLineEventArgs("Commandline", "taskName", MessageImportance.High);
26taskCommandLineEvent = new TaskCommandLineEventArgs("Commandline", "taskName", MessageImportance.High, DateTime.Now);
27taskCommandLineEvent = new TaskCommandLineEventArgs(null, null, MessageImportance.High);
28taskCommandLineEvent = new TaskCommandLineEventArgs(null, null, MessageImportance.High, DateTime.Now);
Microsoft.Build.Tasks.CodeAnalysis (16)
CopyRefAssembly.cs (6)
51Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadSource3", SourcePath, e.Message, e.StackTrace);
56Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_SourceNotRef1", SourcePath);
66Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_SkippingCopy1", DestinationPath);
70Log.LogMessageFromResources(MessageImportance.Low, "CopyRefAssembly_Changed", SourcePath, File.GetLastWriteTimeUtc(SourcePath).ToString("O"), source, DestinationPath, File.GetLastWriteTimeUtc(DestinationPath).ToString("O"), destination);
74Log.LogMessageFromResources(MessageImportance.High, "CopyRefAssembly_BadDestination1", DestinationPath);
86Log.LogMessageFromResources(MessageImportance.Normal, "CopyRefAssembly_Copying", SourcePath, DestinationPath);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (5)
Microsoft.Build.Tasks.Core (154)
AssemblyDependency\ResolveAssemblyReference.cs (40)
217private Dictionary<string, MessageImportance> _showAssemblyFoldersExLocations = new Dictionary<string, MessageImportance>(StringComparer.OrdinalIgnoreCase);
1143Log.LogMessage(MessageImportance.Low, details);
1195MessageImportance.High,
1381MessageImportance importance = ChooseReferenceLoggingImportance(reference);
1426private MessageImportance ChooseReferenceLoggingImportance(Reference reference)
1428MessageImportance importance = MessageImportance.Low;
1440importance = MessageImportance.Normal;
1452MessageImportance importance = MessageImportance.Low;
1611Log.LogMessage(MessageImportance.Low, Strings.LogAttributeFormat, metadataName, metadataValue);
1621private void LogPrimaryOrDependency(Reference reference, string fusionName, MessageImportance importance)
1685private void LogReferenceErrors(Reference reference, MessageImportance importance)
1747private void LogFullName(Reference reference, MessageImportance importance)
1765private void LogAssembliesConsideredAndRejected(Reference reference, string fusionName, MessageImportance importance)
1780MessageImportance messageImportance = MessageImportance.Low;
1786if ((messageImportance == MessageImportance.Low && (importance == MessageImportance.Normal || importance == MessageImportance.High)) ||
1787(messageImportance == MessageImportance.Normal && importance == MessageImportance.High))
1864private void LogDependees(Reference reference, MessageImportance importance)
1881private void LogRelatedFiles(Reference reference, MessageImportance importance)
1900private void LogSatellites(Reference reference, MessageImportance importance)
1913private void LogScatterFiles(Reference reference, MessageImportance importance)
1926private void LogCopyLocalState(Reference reference, MessageImportance importance)
1979private void LogImageRuntime(Reference reference, MessageImportance importance)
2896Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkSubsetLogHeader");
2898Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkRedistLogHeader");
2903Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, redistInfo.Path);
2907Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkAllowListLogHeader");
2914Log.LogMessage(MessageImportance.Low, Strings.FormattedAssemblyInfo, inclusionListInfo.Path);
2921Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.TargetFrameworkExclusionListLogHeader");
2924Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.FourSpaceIndent", assemblyFullName);
2950Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.NoExclusionListBecauseofFullClientName", subsetName);
2972Log.LogMessageFromResources(MessageImportance.Low, "ResolveAssemblyReference.UsingExclusionList");
3081Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.BadTargetFrameworkFormat", version);
3113Log.LogMessageFromResources(MessageImportance.Normal, "ResolveAssemblyReference.IgnoringBecauseNonEmptySubtype", assembly.ItemSpec, subType);
Copy.cs (11)
268Log.LogMessage(MessageImportance.Normal, CreatesDirectory, destinationFolder);
304TryCopyViaLink(HardLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out hardLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethods.MakeHardLink(destination, source, ref errorMessage, Log));
310Log.LogMessage(MessageImportance.Normal, RetryingAsSymbolicLink, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage);
314Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage);
322TryCopyViaLink(SymbolicLinkComment, MessageImportance.Normal, sourceFileState, destinationFileState, out symbolicLinkCreated, ref errorMessage, (source, destination, errMessage) => NativeMethodsShared.MakeSymbolicLink(destination, source, ref errorMessage));
330Log.LogMessage(MessageImportance.Normal, RetryingAsFileCopy, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath, errorMessage);
345Log.LogMessage(MessageImportance.Normal, FileComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath);
365private void TryCopyViaLink(string linkComment, MessageImportance messageImportance, FileState sourceFileState, FileState destinationFileState, out bool linkCreated, ref string errorMessage, Func<string, string, string, bool> createLink)
368Log.LogMessage(MessageImportance.Normal, linkComment, sourceFileState.FileNameFullPath, destinationFileState.FileNameFullPath);
385Log.LogMessage(MessageImportance.Low, RemovingReadOnlyAttribute, file.Name);
849MessageImportance.Low,
CreateManifestResourceName.cs (5)
134Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.RootNamespace", RootNamespace);
138Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.NoRootNamespace");
192Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUpon", fileName, dependentUpon);
196Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.DependsUponNothing", fileName);
241Log.LogMessageFromResources(MessageImportance.Low, "CreateManifestResourceName.AssignedName", fileName, manifestName);
DownloadFile.cs (3)
132Log.LogMessage(MessageImportance.Low, actualException.ToString());
185Log.LogMessageFromResources(MessageImportance.Normal, "DownloadFile.DidNotDownloadBecauseOfFileMatch", SourceUrl, destinationFile.FullName, nameof(SkipUnchangedFiles), "true");
203Log.LogMessageFromResources(MessageImportance.High, "DownloadFile.Downloading", SourceUrl, destinationFile.FullName, response.Content.Headers.ContentLength);
GenerateResource.cs (13)
604Log.LogCommandLine(MessageImportance.Low, commandLineBuilder.ToString());
688Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.NoSources");
1516Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", _newestUncorrelatedInput, outputFilePath);
1572Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.LinkedInputDoesntExist", linkedFilePath);
1579Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.LinkedInputNewer", linkedFilePath, outputFilePath);
1597Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.OutputDoesntExist", outputFilePath);
1604Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", sourceFilePath, outputFilePath);
1612Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", _newestUncorrelatedInput, outputFilePath);
1660Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputDoesntExist", Sources[0].ItemSpec);
1666Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.OutputDoesntExist", StronglyTypedFileName);
1672Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputNewer", Sources[0].ItemSpec, StronglyTypedFileName);
1720Log.LogMessageFromResources(MessageImportance.Low, "GenerateResource.InputDoesntExist", _newestUncorrelatedInput);
3050_logger.LogMessageFromResources(MessageImportance.Low, "GenerateResource.ReadResourceMessage", reader.resources.Count, filename);
MSBuild.cs (9)
223Log.LogMessageFromResources(MessageImportance.Low, "General.UndefineProperties");
227Log.LogMessageFromText($" {property}", MessageImportance.Low);
238Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NotBuildingInParallel");
248Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.NoStopOnFirstFailure");
287Log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingProjects");
348Log.LogMessageFromResources(MessageImportance.High, "MSBuild.ProjectFileNotFoundMessage", project.ItemSpec);
545log.LogMessageFromResources(MessageImportance.Low, "General.ProjectUndefineProperties", projectNames[i]);
549log.LogMessageFromText($" {property}", MessageImportance.Low);
597log.LogMessageFromResources(MessageImportance.Low, "MSBuild.SkippingRemainingTargets");
PlatformNegotiation.cs (7)
53log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform);
59log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.SamePlatform");
68log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, projectReferenceLookupTableMetadata);
76log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.FoundMappingInTable", currentProjectPlatform, buildProjectReferenceAs, platformLookupTable);
82log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.AnyCPUDefault");
94log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.ReferencedProjectHasDefinitivePlatform", projectPath, referencedProjectPlatform);
122log?.LogMessageFromResources(MessageImportance.Low, "GetCompatiblePlatform.LookupTableParsed", stringTable);
Unzip.cs (3)
169Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFilter", zipArchiveEntry.FullName);
197Log.LogMessageFromResources(MessageImportance.Low, "Unzip.DidNotUnzipBecauseOfFileMatch", zipArchiveEntry.FullName, destinationPath.FullName, nameof(SkipUnchangedFiles), "true");
232Log.LogMessageFromResources(MessageImportance.Normal, "Unzip.FileComment", zipArchiveEntry.FullName, destinationPath.FullName);
Microsoft.Build.Utilities.Core (86)
TaskLoggingHelper.cs (14)
256public bool LogsMessagesOfImportance(MessageImportance importance)
275Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?");
277LogMessage(MessageImportance.Normal, message, messageArgs);
291public void LogMessage(MessageImportance importance, [StringSyntax(StringSyntaxAttribute.CompositeFormat)] string message, params object[] messageArgs)
359MessageImportance importance,
470Debug.Assert(messageArgs == null || messageArgs.Length == 0 || messageArgs[0].GetType() != typeof(MessageImportance), "Did you call the wrong overload?");
472LogMessageFromResources(MessageImportance.Normal, messageResourceName, messageArgs);
486public void LogMessageFromResources(MessageImportance importance, string messageResourceName, params object[] messageArgs)
592LogCommandLine(MessageImportance.Low, commandLine);
602public void LogCommandLine(MessageImportance importance, string commandLine)
1307return LogMessagesFromFile(fileName, MessageImportance.Low);
1319public bool LogMessagesFromFile(string fileName, MessageImportance messageImportance)
1346public bool LogMessagesFromStream(TextReader stream, MessageImportance messageImportance)
1374public bool LogMessageFromText(string lineOfText, MessageImportance messageImportance)
ToolTask.cs (21)
288protected virtual MessageImportance StandardErrorLoggingImportance => MessageImportance.Normal;
316protected virtual MessageImportance StandardOutputLoggingImportance => MessageImportance.Low;
321protected MessageImportance StandardOutputImportanceToUse => _standardOutputImportanceToUse;
326protected MessageImportance StandardErrorImportanceToUse => _standardErrorImportanceToUse;
441LogPrivate.LogMessageFromResources(MessageImportance.Low, "General.ToolCommandFailedNoErrorCode", ExitCode);
477protected virtual void LogToolCommand(string message) => LogPrivate.LogCommandLine(MessageImportance.High, message); // Log a descriptive message about what's happening.
850Log.LogMessageFromText($"Preserving temporary file '{fileName}'", MessageImportance.Low);
1092MessageImportance messageImportance,
1147protected virtual void LogEventsFromTextOutput(string singleLine, MessageImportance messageImportance) => Log.LogMessageFromText(singleLine, messageImportance);
1277_standardErrorImportanceToUse = (MessageImportance)Enum.Parse(typeof(MessageImportance), StandardErrorImportance, true /* case-insensitive */);
1297_standardOutputImportanceToUse = (MessageImportance)Enum.Parse(typeof(MessageImportance), StandardOutputImportance, true /* case-insensitive */);
1668LogPrivate.LogMessageFromResources(MessageImportance.Low, "ToolTask.EnvironmentVariableHeader");
1672Log.LogMessage(MessageImportance.Low, " {0}={1}", key, value);
1694private MessageImportance _standardOutputImportanceToUse = MessageImportance.Low;
1699private MessageImportance _standardErrorImportanceToUse = MessageImportance.Normal;
TrackedDependencies\CanonicalTrackedInputFiles.cs (17)
243FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_AllOutputsAreUpToDate");
258FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, modifiedPath, modifiedTime);
262FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, modifiedPath);
266FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec, outputFilePath);
270FileTracker.LogMessageFromResources(_log, MessageImportance.Low, trackerCompileReason, compileSource.ItemSpec);
376FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_DependenciesForRootNotFound", upperSourcesRoot);
396FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_AllOutputsAreUpToDate");
404FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputsNotShown", sourcesNeedingCompilation.Count);
409FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputsFor", upperSourcesRoot);
413FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + inputItem);
418FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_InputNewerThanOutput", newestSourceDependencyFile, oldestOutputFile);
601FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_SingleLogFileNotAvailable", tlogFileName.ItemSpec);
626FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_ReadTrackingCached");
629FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec);
640FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_ReadTrackingLogs");
645FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec);
997FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_ReadLogEntryNotFound", rootingMarker);
TrackedDependencies\CanonicalTrackedOutputFiles.cs (14)
117FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingLogNotAvailable");
140FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_WriteTrackingCached");
143FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec);
148FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_WriteTrackingLogs");
157FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec);
358FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputForRootNotFound", upperSourcesRoot);
368FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.Count);
373FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsFor", upperSourcesRoot);
377FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + outputItem);
444FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputForRootNotFound", upperSourcesRoot);
454FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.Count);
459FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_OutputsFor", upperSourcesRoot);
463FileTracker.LogMessage(_log, MessageImportance.Low, "\t" + outputItem);
691FileTracker.LogMessageFromResources(_log, MessageImportance.Normal, "Tracking_WriteLogEntryNotFound", rootingMarker);
TrackedDependencies\FlatTrackingData.cs (17)
389FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingCached");
392FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogItem.ItemSpec);
397FileTracker.LogMessageFromResources(_log, MessageImportance.Low, "Tracking_TrackingLogs");
407FileTracker.LogMessage(_log, MessageImportance.Low, "\t{0}", tlogFileName.ItemSpec);
739Log.LogMessageFromResources(MessageImportance.Low, "Tracking_LogFilesNotAvailable");
748Log.LogMessageFromResources(MessageImportance.Low, "Tracking_MissingInputs");
753FileTracker.LogMessageFromResources(Log, MessageImportance.Low, "Tracking_InputsNotShown", inputs.MissingFiles.Count);
760FileTracker.LogMessage(Log, MessageImportance.Low, "\t" + input);
767Log.LogMessageFromResources(MessageImportance.Low, "Tracking_MissingOutputs");
772FileTracker.LogMessageFromResources(Log, MessageImportance.Low, "Tracking_OutputsNotShown", outputs.MissingFiles.Count);
779FileTracker.LogMessage(Log, MessageImportance.Low, "\t" + output);
787Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, inputs.NewestTLogFileName, inputs.NewestTLogTimeUtc);
793Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", outputs.NewestFileName, outputs.NewestFileTimeUtc, outputs.NewestTLogFileName, outputs.NewestTLogTimeUtc);
799Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, outputs.NewestFileName, outputs.NewestFileTimeUtc);
805Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, inputs.NewestTLogFileName, inputs.NewestTLogTimeUtc);
811Log.LogMessageFromResources(MessageImportance.Low, "Tracking_DependencyWasModifiedAt", inputs.NewestFileName, inputs.NewestFileTimeUtc, outputs.NewestTLogFileName, outputs.NewestTLogTimeUtc);
817Log.LogMessageFromResources(MessageImportance.Normal, "Tracking_UpToDate");
Microsoft.Build.Utilities.UnitTests (10)
Microsoft.DotNet.Arcade.Sdk (6)
Microsoft.DotNet.Build.Tasks.Feed (20)
Microsoft.DotNet.Build.Tasks.Installers (4)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Build.Tasks.TargetFramework (4)
Microsoft.DotNet.Build.Tasks.Workloads (11)
Microsoft.DotNet.Deployment.Tasks.Links (14)
src\AkaMSLinksManager.cs (13)
120_log.LogMessage(MessageImportance.High, $"Failed to delete aka.ms/{link}: {response.Content.ReadAsStringAsync().Result}");
131_log.LogMessage(MessageImportance.High, $"Failed to delete aka.ms/{link}: {e.Message}");
162_log.LogMessage(MessageImportance.High, $"Creating/Updating {links.Count()} aka.ms links.");
176_log.LogMessage(MessageImportance.High, $"Completed creating/updating {links.Count()} aka.ms links.");
226_log.LogMessage(MessageImportance.High, $"Failed to check aka.ms/{link.ShortUrl}: {response.Content.ReadAsStringAsync().Result}");
237_log.LogMessage(MessageImportance.High, $"Failed to check aka.ms/{link.ShortUrl}: {e.Message}");
265_log.LogMessage(MessageImportance.High, $"{(update ? "Updating" : "Creating")} batch of {links.Count()} aka.ms links.");
282_log.LogMessage(MessageImportance.High, $"Sending {(update ? "update" : "create")} request for batch of {links.Count()} aka.ms links.");
285_log.LogMessage(MessageImportance.High, $"Processing {(update ? "update" : "create")} response for batch of {links.Count()} aka.ms links.");
305_log.LogMessage(MessageImportance.High, $"Failed to update aka.ms links: {response.StatusCode}\n" +
332_log.LogMessage(MessageImportance.High, $"Failed to create/update aka.ms links: {response.StatusCode}\n{await response.Content.ReadAsStringAsync()}");
344_log.LogMessage(MessageImportance.High, $"Failed to create/update aka.ms links: {e.Message}");
356_log.LogMessage(MessageImportance.High, $"Completed aka.ms create/update for batch {links.Count()} links.");
Microsoft.DotNet.GenAPI (4)
Microsoft.DotNet.GenFacades (4)
Microsoft.DotNet.Helix.Sdk (42)
SendHelixJob.cs (16)
267Log.LogMessage(MessageImportance.High, $"Sending Job to {TargetQueue}...");
270ISentJob job = await def.SendAsync(msg => Log.LogMessageFromText(msg, MessageImportance.Normal), cancellationToken);
344Log.LogMessage(MessageImportance.Low, $"Adding work item '{name}'");
353Log.LogMessage(MessageImportance.Low, $" Command: '{commands[0]}'");
361Log.LogMessage(MessageImportance.Low, $" Command File: '{commandFile}'");
364Log.LogMessage(MessageImportance.Low, $" {c}");
375Log.LogMessage(MessageImportance.Low, $" Uri Payload: '{payloadUri}'");
380Log.LogMessage(MessageImportance.Low, $" Directory Payload: '{payloadDirectory}'");
385Log.LogMessage(MessageImportance.Low, $" Archive Payload: '{payloadArchive}'");
390Log.LogMessage(MessageImportance.Low, " Empty Payload");
400Log.LogMessage(MessageImportance.Low, $" Timeout: '{timeout}'");
409Log.LogMessage(MessageImportance.Low, " Default Timeout");
514Log.LogMessage(MessageImportance.Low, $"Adding Correlation Payload URI '{uri}', destination '{destination}'");
535MessageImportance.Low,
555MessageImportance.Low,
562MessageImportance.Low,
Microsoft.DotNet.NuGetRepack.Tasks (3)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (4)
Microsoft.DotNet.SignCheck (1)
Microsoft.DotNet.SignTool (40)
Microsoft.DotNet.SourceBuild.Tasks (12)
Microsoft.DotNet.SwaggerGenerator.MSBuild (5)
Microsoft.DotNet.VersionTools.Tasks (6)
Microsoft.Extensions.ApiDescription.Client.Tests (2)
Microsoft.Maui.Controls.Build.Tasks (2)
Microsoft.Maui.Resizetizer (20)
MSBuild (27)
XMake.cs (14)
1548MessageImportance.Low,
1740MessageImportance.Low),
1745MessageImportance.Low),
1750MessageImportance.Low),
1755MessageImportance.Low),
1760MessageImportance.Low),
1772MessageImportance.Low));
1784MessageImportance.Low));
1794MessageImportance.High));
2842new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedRedirected"), MessageImportance.Low));
2850new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedNotSupported"), MessageImportance.Low));
2857new BuildManager.DeferredBuildMessage(ResourceUtilities.GetResourceString("TerminalLoggerNotUsedDisabled"), MessageImportance.Low));
2932new BuildManager.DeferredBuildMessage($"The environment variable MSBUILDTERMINALLOGGER was set to {terminalLoggerArg}.", MessageImportance.Low));
2941new BuildManager.DeferredBuildMessage($"The environment variable MSBUILDLIVELOGGER was set to {liveLoggerArg}.", MessageImportance.Low));
MSBuildTaskHost (11)
PresentationBuildTasks (30)
Microsoft\Build\Tasks\Windows\MarkupCompilePass1.cs (11)
127Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir);
148Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.AnalysisResult), CompilerAnalyzer.AnalyzeResult);
158Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.RecompiledXaml), CompilerAnalyzer.RecompileMarkupPages[i]);
178Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone));
216Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompileSucceed_Pass1));
946Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ApplicationDefinitionFile), ApplicationFile);
1137Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.ReferenceFile), refpath);
1207Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation));
1208Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType);
1480Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedCodeFile), codeItem.ItemSpec);
1489Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.GeneratedBamlFile), bamlItem.ItemSpec);
Microsoft\Build\Tasks\Windows\MarkupCompilePass2.cs (10)
89Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CurrentDirectory), SourceDir);
133Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.CompilationDone));
566Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.PreparingCompile));
567Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.OutputType), OutputType);
579Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefAppDefFile), localApplicationFile);
594Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefMarkupPage), localPageFile);
629Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.DoCompilation));
685Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.InternalTypeHelperNotRequired), _internalTypeHelperFile);
732Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
751Log.LogMessageFromResources(MessageImportance.Low, nameof(SR.LocalRefGeneratedBamlFile), bamlItem.ItemSpec);
ProjectCachePlugin (4)