19 types derived from BuildMessageEventArgs
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskHost_Tests.cs (2)
852internal sealed class MyCustomMessageEvent : BuildMessageEventArgs 983internal sealed class MyCustomMessageEventNotSerializable : BuildMessageEventArgs
Microsoft.Build.Framework (15)
AssemblyLoadBuildEventArgs.cs (1)
12public sealed class AssemblyLoadBuildEventArgs : BuildMessageEventArgs
BuildCheck\BuildCheckEventArgs.cs (1)
227internal sealed class BuildCheckResultMessage : BuildMessageEventArgs
CriticalBuildMessageEventArgs.cs (1)
20public class CriticalBuildMessageEventArgs : BuildMessageEventArgs
EnvironmentVariableReadEventArgs.cs (1)
16public class EnvironmentVariableReadEventArgs : BuildMessageEventArgs
ExtendedBuildMessageEventArgs.cs (1)
15public sealed class ExtendedBuildMessageEventArgs : BuildMessageEventArgs, IExtendedBuildEventArgs
GeneratedFileUsedEventArgs.cs (1)
12internal class GeneratedFileUsedEventArgs : BuildMessageEventArgs
MetaProjectGeneratedEventArgs.cs (1)
16public class MetaprojectGeneratedEventArgs : BuildMessageEventArgs
ProjectImportedEventArgs.cs (1)
16public class ProjectImportedEventArgs : BuildMessageEventArgs
PropertyInitialValueSetEventArgs.cs (1)
16public class PropertyInitialValueSetEventArgs : BuildMessageEventArgs
PropertyReassignmentEventArgs.cs (1)
16public class PropertyReassignmentEventArgs : BuildMessageEventArgs
ResponseFileUsedEventArgs.cs (1)
12public class ResponseFileUsedEventArgs : BuildMessageEventArgs
TargetSkippedEventArgs.cs (1)
47public class TargetSkippedEventArgs : BuildMessageEventArgs
TaskCommandLineEventArgs.cs (1)
25public class TaskCommandLineEventArgs : BuildMessageEventArgs
TaskParameterEventArgs.cs (1)
30public class TaskParameterEventArgs : BuildMessageEventArgs
UninitializedPropertyReadEventArgs.cs (1)
16public class UninitializedPropertyReadEventArgs : BuildMessageEventArgs
Microsoft.Build.Framework.UnitTests (1)
BuildMessageEventArgs_Tests.cs (1)
43private sealed class BuildMessageEventArgs2 : BuildMessageEventArgs
MSBuildTaskHost (1)
ResponseFileUsedEventArgs.cs (1)
12public class ResponseFileUsedEventArgs : BuildMessageEventArgs
83 instantiations of BuildMessageEventArgs
Microsoft.Build (12)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
290_componentHost.LoggingService.LogBuildEvent(new BuildMessageEventArgs(msg, null, null, MessageImportance.Low)
BackEnd\Components\Logging\LoggingContext.cs (1)
142_loggingService.LogBuildEvent(new BuildMessageEventArgs(
BackEnd\Components\Logging\LoggingService.cs (1)
1589buildEventArgs = new BuildMessageEventArgs(
BackEnd\Shared\EventsCreatorHelper.cs (1)
21BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(
Logging\BinaryLogger\BinaryLogger.cs (1)
305var args = new BuildMessageEventArgs(text, helpKeyword: null, senderName: "BinaryLogger", MessageImportance.Normal);
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
991e = new BuildMessageEventArgs(
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
245buildMessageEventArgs = new BuildMessageEventArgs(
Logging\BinaryLogger\ProjectImportsCollector.cs (1)
176BuildEventArgs args = new BuildMessageEventArgs(
LogMessagePacketBase.cs (2)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
TaskLoggingHelper.cs (2)
306BuildMessageEventArgs e = new BuildMessageEventArgs( 379var e = new BuildMessageEventArgs(
Microsoft.Build.CommandLine.UnitTests (1)
TerminalLogger_Tests.cs (1)
202return new BuildMessageEventArgs(message, "keyword", null, importance)
Microsoft.Build.Engine.UnitTests (38)
BackEnd\BuildEventArgTransportSink_Tests.cs (1)
66BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High);
BackEnd\CentralForwardingLogger_Tests.cs (2)
97BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 117BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal);
BackEnd\EventRedirectorToSink_Tests.cs (1)
62BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High);
BackEnd\EventSourceSink_Tests.cs (1)
732private static BuildMessageEventArgs s_buildMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal);
BackEnd\LoggingService_Tests.cs (1)
702BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High);
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
67BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High); 1707BuildMessageEventArgs buildMessageEvent = new BuildMessageEventArgs(
BackEnd\NodePackets_Tests.cs (2)
50BuildMessageEventArgs lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low); 269new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low),
BackEnd\TaskHost_Tests.cs (1)
309_taskHost.LogMessageEvent(new BuildMessageEventArgs("message", "HelpKeyword", "senderName", MessageImportance.High));
BuildEventArgsSerialization_Tests.cs (1)
443var args = new BuildMessageEventArgs(
ConfigureableForwardingLogger_Tests.cs (3)
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);
ConsoleLogger_Tests.cs (15)
468es.Consume(new BuildMessageEventArgs(null, null, null, MessageImportance.High)); 500BuildMessageEventArgs bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.High); 608BuildMessageEventArgs be = new BuildMessageEventArgs(message, "help", "sender", messageImportance) 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); 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.UnitTests (24)
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);
Microsoft.Build.Utilities.Core (2)
TaskLoggingHelper.cs (2)
306BuildMessageEventArgs e = new BuildMessageEventArgs( 379var e = new BuildMessageEventArgs(
MSBuild (3)
LogMessagePacketBase.cs (2)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
OutOfProcTaskHostNode.cs (1)
1210BuildMessageEventArgs message = new BuildMessageEventArgs(
MSBuildTaskHost (3)
LogMessagePacketBase.cs (2)
624LoggingEventType.BuildMessageEvent => new BuildMessageEventArgs(null, null, null, MessageImportance.Normal), 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
OutOfProcTaskHostNode.cs (1)
1210BuildMessageEventArgs message = new BuildMessageEventArgs(
164 references to BuildMessageEventArgs
Microsoft.Arcade.Test.Common (6)
MockBuildEngine.cs (3)
23public List<BuildMessageEventArgs> BuildMessageEvents = new List<BuildMessageEventArgs>(); 41public void LogMessageEvent(BuildMessageEventArgs e)
MockEngine.cs (3)
27public ICollection<BuildMessageEventArgs> Messages { get; } = new List<BuildMessageEventArgs>(); 41public void LogMessageEvent(BuildMessageEventArgs e)
Microsoft.Build (47)
BackEnd\Components\Logging\EventSourceSink.cs (1)
228case BuildMessageEventArgs buildMessageEvent:
BackEnd\Components\Logging\LoggingService.cs (3)
1015BuildMessageEventArgs buildMessageEvent => buildMessageEvent.ProjectFile, 1251BuildMessageEventArgs messageEvent = null; 1261else if ((messageEvent = buildEvent as BuildMessageEventArgs) != null && messageEvent.BuildEventContext != null && messageEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
75BuildMessageEventArgs buildEvent = EventsCreatorHelper.CreateMessageEventFromText(buildEventContext, importance, message, messageArgs);
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
518public void LogMessageEvent(Microsoft.Build.Framework.BuildMessageEventArgs e)
BackEnd\Shared\EventsCreatorHelper.cs (2)
16public static BuildMessageEventArgs CreateMessageEventFromText(BuildEventContext buildEventContext, MessageImportance importance, string message, params object?[]? messageArgs) 21BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
54BuildMessageEventArgs buildEvent = EventsCreatorHelper.CreateMessageEventFromText(buildEventContext, importance, message, messageArgs);
Definition\ProjectCollection.cs (1)
2364private void MessageRaisedHandler(object sender, BuildMessageEventArgs e)
EventArgsFormatting.cs (3)
57internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string projectConfigurationDescription, string nonNullMessage = null) 136internal static string FormatEventMessage(BuildMessageEventArgs e) 149internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string nonNullMessage = null)
Instance\TaskFactories\TaskHostTask.cs (2)
534this.BuildEngine.LogMessageEvent((BuildMessageEventArgs)logMessagePacket.NodeBuildEvent.Value.Value); 549else if (buildEvent is BuildMessageEventArgs buildMessageEventArgs)
Instance\TaskFactoryLoggingHost.cs (1)
197public void LogMessageEvent(Microsoft.Build.Framework.BuildMessageEventArgs e)
Logging\BaseConsoleLogger.cs (1)
1065public abstract void MessageHandler(object sender, BuildMessageEventArgs e);
Logging\BinaryLogger\BinaryLogger.cs (1)
305var args = new BuildMessageEventArgs(text, helpKeyword: null, senderName: "BinaryLogger", MessageImportance.Normal);
Logging\BinaryLogger\BuildEventArgsWriter.cs (6)
207case BuildMessageEventArgs buildMessage: return Write(buildMessage); 227BuildMessageEventArgs buildMessageEventArgs; 525private BinaryLogRecordKind Write(BuildMessageEventArgs e) 708private void WriteMessageFields(BuildMessageEventArgs e, bool writeMessage = true, bool writeImportance = false) 784private static BuildEventArgsFieldFlags GetMessageFlags(BuildMessageEventArgs e, BuildEventArgsFieldFlags flags, bool writeImportance = false) 854(BuildMessageEventArgs or BuildWarningEventArgs or BuildErrorEventArgs))
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
109if (buildEvent is BuildMessageEventArgs buildMessageEventArgs)
Logging\ConsoleLogger.cs (1)
496public void MessageHandler(object sender, BuildMessageEventArgs e)
Logging\DistributedLoggers\ConfigurableForwardingLogger.cs (1)
352private void MessageHandler(object sender, BuildMessageEventArgs e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (11)
68_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 209_deferredMessages = new Dictionary<BuildEventContext, List<BuildMessageEventArgs>>(s_compareContextNodeId); 259foreach (List<BuildMessageEventArgs> messageList in _deferredMessages.Values) 261foreach (BuildMessageEventArgs message in messageList) 532foreach (BuildMessageEventArgs message in deferredMessages) 1120public override void MessageHandler(object sender, BuildMessageEventArgs e) 1160if (!_deferredMessages.TryGetValue(e.BuildEventContext, out List<BuildMessageEventArgs> messageList)) 1162messageList = new List<BuildMessageEventArgs>(); 1246private void PrintMessage(BuildMessageEventArgs e, bool lightenText) 1307private void PrintTargetNamePerMessage(BuildMessageEventArgs e, bool lightenText) 1799private Dictionary<BuildEventContext, List<BuildMessageEventArgs>> _deferredMessages;
Logging\SerialConsoleLogger.cs (1)
506public override void MessageHandler(object sender, BuildMessageEventArgs e)
LogMessagePacketBase.cs (6)
59/// Event is a <see cref="BuildMessageEventArgs"/>. 680if (eventType == typeof(BuildMessageEventArgs)) 886WriteBuildMessageEventToStream((BuildMessageEventArgs)buildEvent, translator); 980private void WriteBuildMessageEventToStream(BuildMessageEventArgs buildMessageEventArgs, ITranslator translator) 1347private BuildMessageEventArgs ReadBuildMessageEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
TaskLoggingHelper.cs (2)
306BuildMessageEventArgs e = new BuildMessageEventArgs( 379var e = new BuildMessageEventArgs(
Microsoft.Build.BuildCheck.UnitTests (1)
BuildCheckManagerProviderTests.cs (1)
47_logger.AllBuildEvents.Where(be => be.GetType() == typeof(BuildMessageEventArgs)).Select(be => be.Message).ToArray()
Microsoft.Build.CommandLine.UnitTests (4)
TerminalLogger_Tests.cs (4)
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) 459BuildMessageEventArgs e = MakeMessageEventArgs(
Microsoft.Build.Engine.UnitTests (43)
BackEnd\BuildEventArgTransportSink_Tests.cs (3)
66BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High); 73BuildMessageEventArgs messageEventFromPacket = loggingPacket.NodeBuildEvent.Value.Value as BuildMessageEventArgs;
BackEnd\CentralForwardingLogger_Tests.cs (2)
97BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 117BuildMessageEventArgs normalMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal);
BackEnd\EventRedirectorToSink_Tests.cs (3)
62BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("My message", "Help me keyword", "Sender", MessageImportance.High); 68BuildMessageEventArgs messageEventFromPacket = buildEvent as BuildMessageEventArgs;
BackEnd\EventSourceSink_Tests.cs (3)
635private void Source_MessageRaised(object sender, BuildMessageEventArgs e) 732private static BuildMessageEventArgs s_buildMessage = new BuildMessageEventArgs("Message2", "help", "sender", MessageImportance.Normal); 874internal static BuildMessageEventArgs NormalMessage
BackEnd\LoggingService_Tests.cs (5)
702BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High); 706BuildMessageEventArgs messageEventFromPacket = loggingService.ProcessedBuildEvent as BuildMessageEventArgs; 820BuildMessageEventArgs actualBuildEvent = logger.BuildMessageEvents.ShouldHaveSingleItem(); 927BuildMessageEventArgs actualBuildEvent = logger.BuildMessageEvents.ShouldHaveSingleItem();
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
67BuildMessageEventArgs messageEvent = new BuildMessageEventArgs("MyMessage", "HelpKeyword", "Sender", MessageImportance.High); 1707BuildMessageEventArgs buildMessageEvent = new BuildMessageEventArgs( 1715Assert.True(((BuildMessageEventArgs)service.ProcessedBuildEvent).IsEquivalent(buildMessageEvent));
BackEnd\NodePackets_Tests.cs (1)
50BuildMessageEventArgs lowMessage = new BuildMessageEventArgs("Message", "help", "sender", MessageImportance.Low);
BackEnd\TaskExecutionHost_Tests.cs (1)
1191public void LogMessageEvent(BuildMessageEventArgs e)
BackEnd\TaskHost_Tests.cs (4)
312Assert.True(_customLogger.LastMessage is BuildMessageEventArgs); // "Expected Message Event" 1128private BuildMessageEventArgs _lastMessage = null; 1176public BuildMessageEventArgs LastMessage 1316internal void MyCustomMessageHandler(object s, BuildMessageEventArgs e)
BuildEventArgsSerialization_Tests.cs (1)
443var args = new BuildMessageEventArgs(
ConfigureableForwardingLogger_Tests.cs (3)
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);
ConsoleLogger_Tests.cs (12)
500BuildMessageEventArgs bmea = new BuildMessageEventArgs(null, null, null, MessageImportance.High); 608BuildMessageEventArgs be = new BuildMessageEventArgs(message, "help", "sender", messageImportance) 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); 2263BuildMessageEventArgs messsage2 = 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 (1)
446private void SetUpFileLoggerAndLogMessage(string parameters, BuildMessageEventArgs message)
WarningsAsMessagesAndErrors_Tests.cs (1)
247BuildMessageEventArgs actualEvent = logger.BuildMessageEvents.FirstOrDefault(i => i.Message.Equals(ExpectedEventMessage));
Microsoft.Build.Framework (3)
IBuildEngine.cs (1)
38void LogMessageEvent(BuildMessageEventArgs e);
IEventSource.cs (1)
13public delegate void BuildMessageEventHandler(object sender, BuildMessageEventArgs e);
TaskCommandLineEventArgs.cs (1)
12/// <see cref="BuildMessageEventArgs"/> so that command lines can be logged as
Microsoft.Build.Framework.UnitTests (7)
BuildMessageEventArgs_Tests.cs (1)
24BuildMessageEventArgs bmea = new BuildMessageEventArgs2();
CustomEventArgSerialization_Tests.cs (6)
260BuildMessageEventArgs genericEvent = new BuildMessageEventArgs("Message", "HelpKeyword", "SenderName", MessageImportance.High); 269BuildMessageEventArgs newGenericEvent = new BuildMessageEventArgs(null, null, null, MessageImportance.Low); 312private void VerifyMessageEventArg(BuildMessageEventArgs messageEvent, BuildMessageEventArgs newMessageEvent) 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);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (4)
TestUtilities\ErrorLoggerEngine.cs (1)
56public void LogMessageEvent(BuildMessageEventArgs eventArgs)
TestUtilities\MockEngine.cs (3)
19public List<BuildMessageEventArgs> BuildMessages = new List<BuildMessageEventArgs>(); 47public void LogMessageEvent(BuildMessageEventArgs eventArgs)
Microsoft.Build.Tasks.UnitTests (2)
ResourceManagement_Tests.cs (2)
125private List<BuildMessageEventArgs> AssertBuildSucceededAndGetMessages(string taskCode, string targetContent) 152private int GetTrailingIntegerFromMessage(BuildMessageEventArgs msg)
Microsoft.Build.UnitTests.Shared (7)
BuildEventArgsExtension.cs (2)
106public static bool IsEquivalent(this BuildMessageEventArgs args, BuildMessageEventArgs other)
MockEngine.cs (1)
147public void LogMessageEvent(BuildMessageEventArgs eventArgs)
MockLogger.cs (4)
134public List<BuildMessageEventArgs> BuildMessageEvents { get; } = new List<BuildMessageEventArgs>(); 311if (eventArgs is BuildMessageEventArgs m && m.LineNumber != 0) 380case BuildMessageEventArgs buildMessageEventArgs:
Microsoft.Build.Utilities.Core (6)
EventArgsFormatting.cs (3)
57internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string projectConfigurationDescription, string nonNullMessage = null) 136internal static string FormatEventMessage(BuildMessageEventArgs e) 149internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string nonNullMessage = null)
MuxLogger.cs (1)
628private void RaiseMessageEvent(object sender, BuildMessageEventArgs buildEvent)
TaskLoggingHelper.cs (2)
306BuildMessageEventArgs e = new BuildMessageEventArgs( 379var e = new BuildMessageEventArgs(
Microsoft.Build.Utilities.UnitTests (2)
MockEngine.cs (1)
64public void LogMessageEvent(BuildMessageEventArgs eventArgs)
TrackedDependencies\MockEngine.cs (1)
79public void LogMessageEvent(BuildMessageEventArgs eventArgs)
Microsoft.DotNet.Build.Tasks.Feed.Tests (2)
PublishToSymbolServerTest.cs (2)
165var message = buildEngine.BuildMessageEvents.Single(x => x.Message.StartsWith("Publishing Symbols to Symbol server")); 180Microsoft.Build.Framework.BuildMessageEventArgs registerLog = buildEngine.BuildMessageEvents.Where(x => x.Message.StartsWith("Would register request")).Single();
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
TestBuildEngine.cs (1)
46public void LogMessageEvent(BuildMessageEventArgs e)
Microsoft.DotNet.NuGetRepack.Tests (3)
TestHelpers\FakeBuildEngine.cs (3)
17public List<BuildMessageEventArgs> LogMessageEvents = 18new List<BuildMessageEventArgs>(); 58public void LogMessageEvent(BuildMessageEventArgs e)
Microsoft.DotNet.SignTool.Tests (3)
FakeBuildEngine.cs (3)
19public List<BuildMessageEventArgs> LogMessageEvents = 20new List<BuildMessageEventArgs>(); 105public void LogMessageEvent(BuildMessageEventArgs e)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
MockBuildEngine.cs (1)
83public void LogMessageEvent(BuildMessageEventArgs eventArgs)
MSBuild (11)
EventArgsFormatting.cs (3)
57internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string projectConfigurationDescription, string nonNullMessage = null) 136internal static string FormatEventMessage(BuildMessageEventArgs e) 149internal static string FormatEventMessage(BuildMessageEventArgs e, bool showProjectFile, string nonNullMessage = null)
LogMessagePacketBase.cs (5)
680if (eventType == typeof(BuildMessageEventArgs)) 886WriteBuildMessageEventToStream((BuildMessageEventArgs)buildEvent, translator); 980private void WriteBuildMessageEventToStream(BuildMessageEventArgs buildMessageEventArgs, ITranslator translator) 1347private BuildMessageEventArgs ReadBuildMessageEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
OutOfProcTaskHostNode.cs (2)
340public void LogMessageEvent(BuildMessageEventArgs e) 1210BuildMessageEventArgs message = new BuildMessageEventArgs(
TerminalLogger\TerminalLogger.cs (1)
790private void MessageRaised(object sender, BuildMessageEventArgs e)
MSBuildTaskHost (7)
LogMessagePacketBase.cs (5)
680if (eventType == typeof(BuildMessageEventArgs)) 886WriteBuildMessageEventToStream((BuildMessageEventArgs)buildEvent, translator); 980private void WriteBuildMessageEventToStream(BuildMessageEventArgs buildMessageEventArgs, ITranslator translator) 1347private BuildMessageEventArgs ReadBuildMessageEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1353BuildMessageEventArgs buildEvent = new BuildMessageEventArgs(message, helpKeyword, senderName, importance);
OutOfProcTaskHostNode.cs (2)
340public void LogMessageEvent(BuildMessageEventArgs e) 1210BuildMessageEventArgs message = new BuildMessageEventArgs(
XmlFileLogger (4)
ObjectModel\Build.cs (3)
86public void AddTaskParameter(BuildMessageEventArgs buildMessageEventArgs, string messagePrefix) 113public void AddPropertyGroup(BuildMessageEventArgs buildMessageEventArgs, string prefix) 132public void AddItemGroup(BuildMessageEventArgs buildMessageEventArgs, string prefix)
XmlFileLogger.cs (1)
94private void HandleMessageRaised(object sender, BuildMessageEventArgs messageArgs)