5 types derived from BuildErrorEventArgs
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Framework (2)
Microsoft.Build.Framework.UnitTests (1)
79 instantiations of BuildErrorEventArgs
Microsoft.Build (7)
LogMessagePacketBase.cs (2)
504LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
970new 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\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);
ConsoleLogger_Tests.cs (11)
471es.Consume(new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null) { BuildEventContext = new BuildEventContext(1, 1, 1, 1) });
505BuildErrorEventArgs beea = new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null);
649buildEventArgs = new BuildErrorEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName);
761BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
937BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
1154BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", "");
1375BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", "");
1432BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", "");
1452BuildEventArgs buildEvent = new BuildErrorEventArgs("", "", "", 0, 0, 0, 0, "", "", "");
1564BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
1651BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "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)
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)
Microsoft.Maui.Resizetizer (1)
MSBuild (4)
LogMessagePacketBase.cs (2)
504LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
970new BuildErrorEventArgs(
MSBuildTaskHost (4)
BackEnd\LogMessagePacketBase.cs (2)
323LoggingEventType.BuildErrorEvent => new BuildErrorEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
621return new BuildErrorEventArgs(
159 references to BuildErrorEventArgs
Microsoft.Arcade.Test.Common (6)
Microsoft.AspNetCore.Components.Testing.Tests (1)
Microsoft.Build (37)
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (43)
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
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);
ConsoleLogger_Tests.cs (5)
505BuildErrorEventArgs beea = new BuildErrorEventArgs(null, null, null, 0, 0, 0, 0, null, null, null);
761BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
937BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC",
1564BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
1651BuildErrorEventArgs beea = new BuildErrorEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
Microsoft.Build.Framework (5)
Microsoft.Build.Framework.UnitTests (5)
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)
Microsoft.Build.Tasks.Core (8)
Microsoft.Build.Tasks.UnitTests (5)
Microsoft.Build.UnitTests.Shared (9)
Microsoft.Build.Utilities.Core (4)
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;
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.ArcadeLogging (1)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.NuGetRepack.Tests (3)
Microsoft.DotNet.SignTool.Tests (4)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Maui.Resizetizer (2)
MSBuild (7)
MSBuildTaskHost (7)