5 types derived from BuildErrorEventArgs
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskHost_Tests.cs (2)
909internal sealed class MyCustomBuildErrorEventArgs : BuildErrorEventArgs 1040internal sealed class MyCustomBuildErrorEventArgsNotSerializable : BuildErrorEventArgs
Microsoft.Build.Framework (2)
BuildCheck\BuildCheckEventArgs.cs (1)
182internal sealed class BuildCheckResultError : BuildErrorEventArgs
ExtendedBuildErrorEventArgs.cs (1)
15public sealed class ExtendedBuildErrorEventArgs : BuildErrorEventArgs, IExtendedBuildEventArgs
Microsoft.Build.Framework.UnitTests (1)
BuildErrorEventArgs_Tests.cs (1)
38private sealed class BuildErrorEventArgs2 : BuildErrorEventArgs
79 instantiations of BuildErrorEventArgs
Microsoft.Build (7)
BackEnd\Components\Logging\LoggingService.cs (1)
1678buildEventArgs = new BuildErrorEventArgs(
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
163new BuildErrorEventArgs(
BackEnd\Shared\EventsCreatorHelper.cs (1)
43new BuildErrorEventArgs(
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
888e = new BuildErrorEventArgs(
LogMessagePacketBase.cs (2)
504LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 970new BuildErrorEventArgs(
TaskLoggingHelper.cs (1)
718var e = new BuildErrorEventArgs(
Microsoft.Build.Engine.UnitTests (41)
BackEnd\BuildTelemetryErrorCategorization_Tests.cs (12)
43var errorEvent = new BuildErrorEventArgs( 110new BuildErrorEventArgs(null, "CS0103", "file.cs", 1, 1, 0, 0, "Error 1", null, "sender"), 111new BuildErrorEventArgs(null, "CS1002", "file.cs", 2, 1, 0, 0, "Error 2", null, "sender"), 112new BuildErrorEventArgs(null, "MSB4018", "file.proj", 10, 5, 0, 0, "Error 3", null, "sender"), 113new BuildErrorEventArgs(null, "MSB3026", "file.proj", 15, 3, 0, 0, "Error 4", null, "sender"), 114new BuildErrorEventArgs(null, "NU1101", "file.proj", 20, 1, 0, 0, "Error 5", null, "sender"), 115new BuildErrorEventArgs(null, "CUSTOM001", "file.txt", 1, 1, 0, 0, "Error 6", null, "sender"), 154new BuildErrorEventArgs(null, "MSB3026", "file.proj", 1, 1, 0, 0, "Task Error 1", null, "sender"), 155new BuildErrorEventArgs(null, "MSB3027", "file.proj", 2, 1, 0, 0, "Task Error 2", null, "sender"), 156new BuildErrorEventArgs(null, "MSB3028", "file.proj", 3, 1, 0, 0, "Task Error 3", null, "sender"), 157new BuildErrorEventArgs(null, "CS0103", "file.cs", 4, 1, 0, 0, "Compiler Error", null, "sender"), 189var errorEvent = new BuildErrorEventArgs(
BackEnd\EventSourceSink_Tests.cs (1)
765private static BuildErrorEventArgs s_buildError = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
70BuildErrorEventArgs error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 1755BuildErrorEventArgs buildEvent = new BuildErrorEventArgs(
BackEnd\NodePackets_Tests.cs (2)
57BuildErrorEventArgs error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 282new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"),
BackEnd\TaskHost_Tests.cs (4)
203_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 215_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 228_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender")); 286_taskHost.LogErrorEvent(new BuildErrorEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender"));
BuildEventArgsSerialization_Tests.cs (5)
296var args = new BuildErrorEventArgs( 1028BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1091BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1145BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1197BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null);
ConfigureableForwardingLogger_Tests.cs (1)
28private readonly BuildErrorEventArgs _error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
ConsoleLogger_Tests.cs (11)
465es.Consume(new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null) { BuildEventContext = new BuildEventContext(1, 1, 1, 1) }); 499BuildErrorEventArgs beea = new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 643buildEventArgs = new BuildErrorEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName); 755BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", 931BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", 1148BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1369BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1426BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1446BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", ""); 1558BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1645BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
EventArgsFormatting_Tests.cs (1)
110BuildErrorEventArgs error = new BuildErrorEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
TerminalLogger_Tests.cs (2)
371return new BuildErrorEventArgs(subcategory: null, code: "AA0000", file: "directory/file", lineNumber: 1, columnNumber: 2, endLineNumber: 3, endColumnNumber: 4, message: error, helpKeyword: keyword, helpLink: link, senderName: null, eventTimestamp: DateTime.UtcNow) 719_centralNodeEventSource.InvokeErrorRaised(new BuildErrorEventArgs(
Microsoft.Build.Framework.UnitTests (15)
BuildErrorEventArgs_Tests.cs (7)
25beea = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender"); 26beea = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", DateTime.Now); 27beea = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", DateTime.Now, "Message"); 28beea = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", "HelpLink", DateTime.Now, "Message"); 29beea = new BuildErrorEventArgs(null, null, null, 1, 2, 3, 4, null, null, null); 30beea = new BuildErrorEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, DateTime.Now); 31beea = new BuildErrorEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, null, DateTime.Now, null);
CustomEventArgSerialization_Tests.cs (8)
127BuildErrorEventArgs genericEvent = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName"); 136BuildErrorEventArgs newGenericEvent = new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null); 144genericEvent = new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty); 153newGenericEvent = new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null); 161genericEvent = new BuildErrorEventArgs(null, null, null, 1, 2, 3, 4, null, null, null); 170newGenericEvent = new BuildErrorEventArgs("Something", "SomeThing", "SomeThing", -1, -1, -1, -1, "Something", "SomeThing", "Something"); 178genericEvent = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName", "HelpLink", DateTime.Now); 187newGenericEvent = new BuildErrorEventArgs("Something", "SomeThing", "SomeThing", -1, -1, -1, -1, "Something", "SomeThing", "Something", "HelpLink", DateTime.Now);
Microsoft.Build.Tasks.Core (2)
LogMessagePacketBase.cs (2)
504LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 970new BuildErrorEventArgs(
Microsoft.Build.Utilities.Core (1)
TaskLoggingHelper.cs (1)
718var e = new BuildErrorEventArgs(
Microsoft.Build.Utilities.UnitTests (2)
EventArgsFormatting_Tests.cs (2)
98BuildErrorEventArgs error = new BuildErrorEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender"); 134BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
Microsoft.DotNet.SignTool.Tests (2)
FakeBuildEngine.cs (2)
48LogErrorEvent(new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 0, 0, 0, 0, "Didn't find a project node.", "", "")); 53LogErrorEvent(new BuildErrorEventArgs(string.Empty, string.Empty, string.Empty, 0, 0, 0, 0, "Only one <ItemGroup> is expected on this file.", "", ""));
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
155 var data = new BuildErrorEventArgs(
MSBuild (4)
LogMessagePacketBase.cs (2)
504LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 970new BuildErrorEventArgs(
OutOfProcTaskAppDomainWrapperBase.cs (1)
437buildEngine.LogErrorEvent(new BuildErrorEventArgs(
OutOfProcTaskHostNode.cs (1)
1802BuildErrorEventArgs error = new BuildErrorEventArgs(
MSBuildTaskHost (4)
BackEnd\LogMessagePacketBase.cs (2)
323LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 621return new BuildErrorEventArgs(
OutOfProcTaskAppDomainWrapper.cs (1)
160BuildErrorEventArgs error = new(
OutOfProcTaskHostNode.cs (1)
912BuildErrorEventArgs errorArgs = new(
159 references to BuildErrorEventArgs
Microsoft.Arcade.Test.Common (6)
MockBuildEngine.cs (3)
22public List<BuildErrorEventArgs> BuildErrorEvents = new List<BuildErrorEventArgs>(); 36public void LogErrorEvent(BuildErrorEventArgs e)
MockEngine.cs (3)
29public ICollection<BuildErrorEventArgs> Errors { get; } = new List<BuildErrorEventArgs>(); 53public void LogErrorEvent(BuildErrorEventArgs e)
Microsoft.AspNetCore.Components.Testing.Tests (1)
GenerateE2EManifestTaskTests.cs (1)
337public void LogErrorEvent(BuildErrorEventArgs e) { }
Microsoft.Build (37)
BackEnd\Components\Logging\EventSourceSink.cs (2)
290case BuildErrorEventArgs buildErrorEvent: 345case BuildErrorEventArgs:
BackEnd\Components\Logging\LoggingService.cs (3)
1246BuildErrorEventArgs errorEvent = null; 1253else if ((errorEvent = buildEvent as BuildErrorEventArgs) != null && errorEvent.BuildEventContext != null && errorEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1698if (buildEventArgs is BuildErrorEventArgs errorEvent)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
133BuildErrorEventArgs buildEvent = EventsCreatorHelper.CreateErrorEventFromText(buildEventContext, subcategoryResourceName, errorCode, helpKeyword, file, message); 162BuildErrorEventArgs buildEvent =
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
409public void LogErrorEvent(Microsoft.Build.Framework.BuildErrorEventArgs e)
BackEnd\Shared\EventsCreatorHelper.cs (2)
29public static BuildErrorEventArgs CreateErrorEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 42BuildErrorEventArgs buildEvent =
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
56BuildErrorEventArgs buildEvent = EventsCreatorHelper.CreateErrorEventFromText(_eventContext, subcategoryResourceName, errorCode, helpKeyword, file, message);
Instance\TaskFactories\TaskHostTask.cs (2)
641this.BuildEngine.LogErrorEvent((BuildErrorEventArgs)logMessagePacket.NodeBuildEvent.Value.Value); 655if (buildEvent is BuildErrorEventArgs buildErrorEventArgs)
Instance\TaskFactoryEngineContext.cs (1)
199public void LogErrorEvent(Microsoft.Build.Framework.BuildErrorEventArgs e)
Logging\BaseConsoleLogger.cs (2)
1061public abstract void ErrorHandler(object sender, BuildErrorEventArgs e); 1174internal List<BuildErrorEventArgs> errorList;
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
212case BuildErrorEventArgs buildError: return Write(buildError); 472private BinaryLogRecordKind Write(BuildErrorEventArgs e) 857(BuildMessageEventArgs or BuildWarningEventArgs or BuildErrorEventArgs))
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
157else if (buildEvent is BuildErrorEventArgs buildErrorEventArgs)
Logging\ConsoleLogger.cs (1)
440public void ErrorHandler(object sender, BuildErrorEventArgs e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
190errorList = new List<BuildErrorEventArgs>(); 377foreach (BuildErrorEventArgs error in errorList) 494if (errorWarningEvent is BuildErrorEventArgs buildErrorEventArgs) 1027public override void ErrorHandler(object sender, BuildErrorEventArgs e)
Logging\ReusableLogger.cs (1)
553private void ErrorRaisedHandler(object sender, BuildErrorEventArgs e) => ErrorRaised?.Invoke(sender, e);
Logging\SimpleErrorLogger.cs (1)
56private void HandleErrorEvent(object sender, BuildErrorEventArgs e)
Logging\TerminalLogger\TerminalLogger.cs (3)
1405private static Uri? GenerateLinkForError(BuildErrorEventArgs e) 1425private void ErrorRaised(object sender, BuildErrorEventArgs e) 1658private string FormatErrorMessage(BuildErrorEventArgs e, string indent, bool requireFileAndLinePortion = true) => FormatEventMessage(
LogMessagePacketBase.cs (6)
38/// Event is a <see cref="BuildErrorEventArgs"/>. 721else if (eventType == typeof(BuildErrorEventArgs)) 765WriteBuildErrorEventToStream((BuildErrorEventArgs)buildEvent, translator); 808private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 946private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 969BuildErrorEventArgs buildEvent =
TaskLoggingHelper.cs (1)
718var e = new BuildErrorEventArgs(
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
4278foreach (var error in logger.Errors)
Microsoft.Build.Engine.UnitTests (43)
BackEnd\BuildManager_Logging_Tests.cs (1)
78public void Build_WithCustomBuildArgs_ShouldEmitErrorOnNetCore() => Build_WithCustomBuildArgs_ShouldEmitEvent<BuildErrorEventArgs>();
BackEnd\BuildTelemetryErrorCategorization_Tests.cs (4)
43var errorEvent = new BuildErrorEventArgs( 118foreach (var error in errors) 160foreach (var error in errors) 189var errorEvent = new BuildErrorEventArgs(
BackEnd\EventSourceSink_Tests.cs (3)
645private void Source_ErrorRaised(object sender, BuildErrorEventArgs e) 765private static BuildErrorEventArgs s_buildError = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 934internal static BuildErrorEventArgs Error
BackEnd\LoggingService_Tests.cs (2)
735BuildErrorEventArgs actualBuildEvent = logger.Errors.ShouldHaveSingleItem(); 873BuildErrorEventArgs actualBuildEvent = logger.Errors.ShouldHaveSingleItem();
BackEnd\LoggingServicesLogMethod_Tests.cs (5)
70BuildErrorEventArgs error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 473List<BuildErrorEventArgs> errors = mockLogger.Errors; 475BuildErrorEventArgs error = errors[0]; 1755BuildErrorEventArgs buildEvent = new BuildErrorEventArgs( 1768Assert.True(buildEvent.IsEquivalent((BuildErrorEventArgs)service.ProcessedBuildEvent));
BackEnd\NodePackets_Tests.cs (1)
57BuildErrorEventArgs error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
BackEnd\TaskExecutionHost_Tests.cs (1)
1182public void LogErrorEvent(BuildErrorEventArgs e)
BackEnd\TaskHost_Tests.cs (7)
206Assert.True(_customLogger.LastError is BuildErrorEventArgs); // "Expected Error Event" 231Assert.True(_customLogger.LastError is BuildErrorEventArgs); // "Expected Error Event" 289Assert.True(_customLogger.LastError is BuildErrorEventArgs); // "Expected Error Event" 347Assert.True(_customLogger.LastError is BuildErrorEventArgs); // "Expected Error Event" 1117private BuildErrorEventArgs _lastError = null; 1157public BuildErrorEventArgs LastError 1289internal void MyCustomErrorHandler(object s, BuildErrorEventArgs e)
BuildEventArgsSerialization_Tests.cs (7)
296var args = new BuildErrorEventArgs( 1028BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1069var deserializedError = (BuildErrorEventArgs)buildEventArgsReader.Read(); 1091BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1145BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null); 1197BuildErrorEventArgs error = new(null, null, null, 1, 2, 3, 4, null, null, null);
ConfigureableForwardingLogger_Tests.cs (1)
28private readonly BuildErrorEventArgs _error = new BuildErrorEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
ConsoleLogger_Tests.cs (5)
499BuildErrorEventArgs beea = new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 755BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", 931BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", 1558BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1645BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
Construction\SolutionProjectGenerator_Tests.cs (1)
357BuildErrorEventArgs error = logger.Errors[0];
EventArgsFormatting_Tests.cs (1)
110BuildErrorEventArgs error = new BuildErrorEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
TerminalLogger_Tests.cs (3)
70case BuildErrorEventArgs e: 129public void InvokeErrorRaised(BuildErrorEventArgs args) => ErrorRaised?.Invoke(_eventSender, args); 369private BuildErrorEventArgs MakeErrorEventArgs(string error, string? link = null, string? keyword = null, BuildEventContext? buildEventContext = null)
WarningsAsMessagesAndErrors_Tests.cs (1)
228BuildErrorEventArgs actualEvent = logger.Errors.FirstOrDefault();
Microsoft.Build.Framework (5)
IBuildEngine.cs (1)
22void LogErrorEvent(BuildErrorEventArgs e);
IEventSource.cs (1)
18public delegate void BuildErrorEventHandler(object sender, BuildErrorEventArgs e);
Utilities\EventArgsFormatting.cs (3)
26internal static string FormatEventMessage(BuildErrorEventArgs e, bool showProjectFile, string projectConfigurationDescription) 70internal static string FormatEventMessage(BuildErrorEventArgs e) 87internal static string FormatEventMessage(BuildErrorEventArgs e, bool showProjectFile)
Microsoft.Build.Framework.UnitTests (5)
BuildErrorEventArgs_Tests.cs (1)
24BuildErrorEventArgs beea = new BuildErrorEventArgs2();
CustomEventArgSerialization_Tests.cs (4)
127BuildErrorEventArgs genericEvent = new BuildErrorEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName"); 136BuildErrorEventArgs newGenericEvent = new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null); 197private static void VerifyBuildErrorEventArgs(BuildErrorEventArgs genericEvent, BuildErrorEventArgs newGenericEvent)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
TestUtilities\ErrorLoggerEngine.cs (2)
29new Type[] { typeof(BuildErrorEventArgs) }, null) ?? throw new Exception("Could not find FormatEventMessage(BuildErrorEventArgs)."); 40public void LogErrorEvent(BuildErrorEventArgs eventArgs)
TestUtilities\MockEngine.cs (1)
27public void LogErrorEvent(BuildErrorEventArgs eventArgs)
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
80rarTask.BuildEngine.LogErrorEvent((BuildErrorEventArgs)buildEvent);
AssemblyDependency\Node\RarNodeBuildEngine.cs (1)
103public void LogErrorEvent(BuildErrorEventArgs e) => LogEvent(e);
LogMessagePacketBase.cs (6)
38/// Event is a <see cref="BuildErrorEventArgs"/>. 721else if (eventType == typeof(BuildErrorEventArgs)) 765WriteBuildErrorEventToStream((BuildErrorEventArgs)buildEvent, translator); 808private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 946private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 969BuildErrorEventArgs buildEvent =
Microsoft.Build.Tasks.UnitTests (5)
CodeTaskFactoryTests.cs (1)
1626BuildErrorEventArgs error = mockLogger.Errors.FirstOrDefault();
VerifyFileHash_Tests.cs (4)
38var errorEvent = _mockEngine.ErrorEvents.ShouldHaveSingleItem(); 57var errorEvent = _mockEngine.ErrorEvents.ShouldHaveSingleItem(); 76var errorEvent = _mockEngine.ErrorEvents.ShouldHaveSingleItem(); 98var errorEvent = _mockEngine.ErrorEvents.ShouldHaveSingleItem();
Microsoft.Build.UnitTests.Shared (9)
BuildEventArgsExtension.cs (2)
122public static bool IsEquivalent(this BuildErrorEventArgs args, BuildErrorEventArgs other)
MockEngine.cs (4)
43private readonly ConcurrentQueue<BuildErrorEventArgs> _errorEvents = new ConcurrentQueue<BuildErrorEventArgs>(); 58public BuildErrorEventArgs[] ErrorEvents => _errorEvents.ToArray(); 90public void LogErrorEvent(BuildErrorEventArgs eventArgs)
MockLogger.cs (3)
63public List<BuildErrorEventArgs> Errors { get; } = new List<BuildErrorEventArgs>(); 293case BuildErrorEventArgs e:
Microsoft.Build.Utilities.Core (4)
Logger.cs (1)
48public virtual string FormatErrorEvent(BuildErrorEventArgs args) => EventArgsFormatting.FormatEventMessage(args);
MuxLogger.cs (2)
670private void RaiseErrorEvent(object sender, BuildErrorEventArgs buildEvent) 1209bool eventIsErrorOrWarning = (buildEvent is BuildWarningEventArgs) || (buildEvent is BuildErrorEventArgs);
TaskLoggingHelper.cs (1)
718var e = new BuildErrorEventArgs(
Microsoft.Build.Utilities.UnitTests (5)
EventArgsFormatting_Tests.cs (3)
98BuildErrorEventArgs error = new BuildErrorEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender"); 134BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", 164BuildErrorEventArgs beea = null;
MockEngine.cs (1)
44public void LogErrorEvent(BuildErrorEventArgs eventArgs)
TrackedDependencies\MockEngine.cs (1)
38public void LogErrorEvent(BuildErrorEventArgs eventArgs)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
25private void OnErrorRaised(object sender, MSB.Framework.BuildErrorEventArgs e)
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
194private void OnErrorRaised(object sender, BuildErrorEventArgs e) =>
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
TestBuildEngine.cs (1)
41public void LogErrorEvent(BuildErrorEventArgs e)
Microsoft.DotNet.NuGetRepack.Tests (3)
TestHelpers\FakeBuildEngine.cs (3)
15public List<BuildErrorEventArgs> LogErrorEvents = new List<BuildErrorEventArgs>(); 53public void LogErrorEvent(BuildErrorEventArgs e)
Microsoft.DotNet.SignTool.Tests (4)
FakeBuildEngine.cs (3)
17public List<BuildErrorEventArgs> LogErrorEvents = new List<BuildErrorEventArgs>(); 95public void LogErrorEvent(BuildErrorEventArgs e)
SignToolTests.cs (1)
3927public void LogErrorEvent(BuildErrorEventArgs e) => _innerEngine.LogErrorEvent(e);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
MockBuildEngine.cs (1)
66public void LogErrorEvent(BuildErrorEventArgs eventArgs)
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
155 var data = new BuildErrorEventArgs( 298 LogInternal<BuildErrorEventArgs>(errorMessageQueue, (e) =>
MSBuild (7)
LogMessagePacketBase.cs (5)
721else if (eventType == typeof(BuildErrorEventArgs)) 765WriteBuildErrorEventToStream((BuildErrorEventArgs)buildEvent, translator); 808private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 946private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 969BuildErrorEventArgs buildEvent =
OutOfProcTaskHostNode.cs (2)
425public void LogErrorEvent(BuildErrorEventArgs e) 1802BuildErrorEventArgs error = new BuildErrorEventArgs(
MSBuildTaskHost (7)
BackEnd\LogMessagePacketBase.cs (4)
403else if (eventType == typeof(BuildErrorEventArgs)) 440WriteBuildErrorEventToStream((BuildErrorEventArgs)buildEvent, translator); 481private void WriteBuildErrorEventToStream(BuildErrorEventArgs buildErrorEventArgs, ITranslator translator) 598private BuildErrorEventArgs ReadTaskBuildErrorEventFromStream(ITranslator translator, string? message, string? helpKeyword, string? senderName)
OutOfProcTaskAppDomainWrapper.cs (1)
160BuildErrorEventArgs error = new(
OutOfProcTaskHostNode.cs (2)
232public void LogErrorEvent(BuildErrorEventArgs e) 912BuildErrorEventArgs errorArgs = new(