5 types derived from BuildWarningEventArgs
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Framework (2)
Microsoft.Build.Framework.UnitTests (1)
55 instantiations of BuildWarningEventArgs
Microsoft.Build (8)
LogMessagePacketBase.cs (2)
626LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
1269new BuildWarningEventArgs(
Microsoft.Build.CommandLine.UnitTests (2)
TerminalLogger_Tests.cs (2)
184return new BuildWarningEventArgs("", "AA0000", "directory/file", 1, 2, 3, 4, warning, null, null)
192return new BuildWarningEventArgs("", "MSB3026", "directory/file", 1, 2, 3, 4,
Microsoft.Build.Engine.UnitTests (19)
BackEnd\LoggingService_Tests.cs (2)
715private static readonly BuildWarningEventArgs BuildWarningEventForTreatAsErrorOrMessageTests = new BuildWarningEventArgs("subcategory", "C94A41A90FFB4EF592BF98BA59BEE8AF", "file", 1, 2, 3, 4, "message", "helpKeyword", "senderName");
795BuildWarningEventArgs warningArgs = new("abc", "FOR123", "", 0, 0, 0, 0, "warning message", "keyword", "sender");
BackEnd\NodePackets_Tests.cs (2)
55BuildWarningEventArgs warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
278new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"),
ConsoleLogger_Tests.cs (8)
469es.Consume(new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null));
502BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null);
669buildEventArgs = new BuildWarningEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName);
868BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1076BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1152BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1957BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
2047BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
Microsoft.Build.Framework.UnitTests (17)
BuildWarningEventArgs_Tests.cs (9)
21private BuildWarningEventArgs _baseWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender");
30buildWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender");
31buildWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender", DateTime.Now);
32buildWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", DateTime.Now, "Message");
33buildWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "{0}", "HelpKeyword", "sender", "HelpLink", DateTime.Now, "Message");
34buildWarningEvent = new BuildWarningEventArgs(null, null, null, 1, 2, 3, 4, null, null, null);
35buildWarningEvent = new BuildWarningEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, DateTime.Now);
36buildWarningEvent = new BuildWarningEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, DateTime.Now, null);
37buildWarningEvent = new BuildWarningEventArgs(null, null, null, 1, 2, 3, 4, null, null, null, null, DateTime.Now, null);
CustomEventArgSerialization_Tests.cs (8)
437BuildWarningEventArgs genericEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName");
446BuildWarningEventArgs newGenericEvent = new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null);
454genericEvent = new BuildWarningEventArgs(string.Empty, string.Empty, string.Empty, 1, 2, 3, 4, string.Empty, string.Empty, string.Empty);
463newGenericEvent = new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null);
471genericEvent = new BuildWarningEventArgs(null, null, null, 1, 2, 3, 4, null, null, null);
480newGenericEvent = new BuildWarningEventArgs("Something", "SomeThing", "SomeThing", -1, -1, -1, -1, "Something", "SomeThing", "Something");
488genericEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName", "HelpLink", DateTime.Now, null);
497newGenericEvent = new BuildWarningEventArgs("Something", "SomeThing", "SomeThing", -1, -1, -1, -1, "Something", "SomeThing", "Something");
Microsoft.Build.Utilities.Core (1)
Microsoft.Build.Utilities.UnitTests (2)
EventArgsFormatting_Tests.cs (2)
99BuildWarningEventArgs warning = new BuildWarningEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
148BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
MSBuild (3)
LogMessagePacketBase.cs (2)
626LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
1269new BuildWarningEventArgs(
MSBuildTaskHost (3)
LogMessagePacketBase.cs (2)
626LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null),
1269new BuildWarningEventArgs(
149 references to BuildWarningEventArgs
Microsoft.Arcade.Test.Common (6)
Microsoft.Build (47)
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.UnitTests (33)
BackEnd\EventSourceSink_Tests.cs (3)
549private void Source_WarningRaised(object sender, BuildWarningEventArgs e)
757private static BuildWarningEventArgs s_buildWarning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender")
923internal static BuildWarningEventArgs Warning
BackEnd\LoggingService_Tests.cs (3)
715private static readonly BuildWarningEventArgs BuildWarningEventForTreatAsErrorOrMessageTests = new BuildWarningEventArgs("subcategory", "C94A41A90FFB4EF592BF98BA59BEE8AF", "file", 1, 2, 3, 4, "message", "helpKeyword", "senderName");
767var actualEvent = logger.Warnings.ShouldHaveSingleItem();
795BuildWarningEventArgs warningArgs = new("abc", "FOR123", "", 0, 0, 0, 0, "warning message", "keyword", "sender");
ConsoleLogger_Tests.cs (6)
502BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null);
868BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1076BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1152BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC",
1957BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
2047BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
Microsoft.Build.Framework (2)
Microsoft.Build.Framework.UnitTests (6)
CustomEventArgSerialization_Tests.cs (4)
437BuildWarningEventArgs genericEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "SenderName");
446BuildWarningEventArgs newGenericEvent = new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null);
507private static void VerifyBuildWarningEventArgs(BuildWarningEventArgs genericEvent, BuildWarningEventArgs newGenericEvent)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (3)
Microsoft.Build.UnitTests.Shared (9)
Microsoft.Build.Utilities.Core (7)
Microsoft.Build.Utilities.UnitTests (5)
EventArgsFormatting_Tests.cs (3)
99BuildWarningEventArgs warning = new BuildWarningEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
148BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC",
177BuildWarningEventArgs bwea = 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 (3)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
MSBuild (12)
MSBuildTaskHost (7)