5 types derived from BuildWarningEventArgs
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskHost_Tests.cs (2)
946internal sealed class MyCustomBuildWarningEventArgs : BuildWarningEventArgs 1076internal sealed class MyCustomBuildWarningEventArgsNotSerializable : BuildWarningEventArgs
Microsoft.Build.Framework (2)
BuildCheck\BuildCheckEventArgs.cs (1)
159internal sealed class BuildCheckResultWarning : BuildWarningEventArgs
ExtendedBuildWarningEventArgs.cs (1)
15public sealed class ExtendedBuildWarningEventArgs : BuildWarningEventArgs, IExtendedBuildEventArgs
Microsoft.Build.Framework.UnitTests (1)
BuildWarningEventArgs_Tests.cs (1)
53private sealed class BuildWarningEventArgs2 : BuildWarningEventArgs
57 instantiations of BuildWarningEventArgs
Microsoft.Build (7)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
314BuildWarningEventArgs buildEvent = new BuildWarningEventArgs(
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
446BuildWarningEventArgs warningEvent = new BuildWarningEventArgs(
BackEnd\Shared\EventsCreatorHelper.cs (1)
74new BuildWarningEventArgs(
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
940e = new BuildWarningEventArgs(
LogMessagePacketBase.cs (2)
508LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 928new BuildWarningEventArgs(
TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
Microsoft.Build.Engine.UnitTests (21)
BackEnd\EventSourceSink_Tests.cs (1)
757private static BuildWarningEventArgs s_buildWarning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender")
BackEnd\LoggingService_Tests.cs (2)
714private static readonly BuildWarningEventArgs BuildWarningEventForTreatAsErrorOrMessageTests = new BuildWarningEventArgs("subcategory", "C94A41A90FFB4EF592BF98BA59BEE8AF", "file", 1, 2, 3, 4, "message", "helpKeyword", "senderName"); 794BuildWarningEventArgs warningArgs = new("abc", "FOR123", "", 0, 0, 0, 0, "warning message", "keyword", "sender");
BackEnd\LoggingServicesLogMethod_Tests.cs (2)
69BuildWarningEventArgs warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 1728BuildWarningEventArgs buildEvent = new BuildWarningEventArgs(
BackEnd\NodePackets_Tests.cs (2)
56BuildWarningEventArgs warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 281new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"),
BackEnd\TaskHost_Tests.cs (1)
300_taskHost.LogWarningEvent(new BuildWarningEventArgs("SubCategory", "code", null, 0, 1, 2, 3, "message", "Help", "Sender"));
BuildEventArgsSerialization_Tests.cs (1)
370var args = new BuildWarningEventArgs(
ConfigureableForwardingLogger_Tests.cs (1)
27private readonly BuildWarningEventArgs _warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
ConsoleLogger_Tests.cs (8)
464es.Consume(new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null) { BuildEventContext = new BuildEventContext(1, 1, 1, 1) }); 497BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 647buildEventArgs = new BuildWarningEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName); 816BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 991BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1052BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1552BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1639BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
EventArgsFormatting_Tests.cs (1)
111BuildWarningEventArgs warning = new BuildWarningEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
TerminalLogger_Tests.cs (2)
326return new BuildWarningEventArgs("", "MSB3026", "directory/file", 1, 2, 3, 4, 379return new BuildWarningEventArgs(subcategory: null, code: "AA0000", file: "directory/file", lineNumber: 1, columnNumber: 2, endLineNumber: 3, endColumnNumber: 4, message: warning, helpKeyword: keyword, helpLink: link, senderName: null, eventTimestamp: DateTime.UtcNow)
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.Tasks.Core (2)
LogMessagePacketBase.cs (2)
508LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 928new BuildWarningEventArgs(
Microsoft.Build.Utilities.Core (1)
TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
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",
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
199 var data = new BuildWarningEventArgs(
MSBuild (3)
LogMessagePacketBase.cs (2)
508LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 928new BuildWarningEventArgs(
OutOfProcTaskHostNode.cs (1)
1779BuildWarningEventArgs warning = new BuildWarningEventArgs(
MSBuildTaskHost (3)
BackEnd\LogMessagePacketBase.cs (2)
327LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 582return new BuildWarningEventArgs(
OutOfProcTaskHostNode.cs (1)
890BuildWarningEventArgs warningArgs = new(
153 references to BuildWarningEventArgs
Microsoft.Arcade.Test.Common (6)
MockBuildEngine.cs (3)
24public List<BuildWarningEventArgs> BuildWarningEvents = new List<BuildWarningEventArgs>(); 46public void LogWarningEvent(BuildWarningEventArgs e)
MockEngine.cs (3)
28public ICollection<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 47public void LogWarningEvent(BuildWarningEventArgs e)
Microsoft.AspNetCore.Components.Testing.Tests (1)
GenerateE2EManifestTaskTests.cs (1)
338public void LogWarningEvent(BuildWarningEventArgs e) { }
Microsoft.Build (43)
BackEnd\Components\Logging\EventSourceSink.cs (2)
287case BuildWarningEventArgs buildWarningEvent: 344case BuildWarningEventArgs:
BackEnd\Components\Logging\LoggingService.cs (8)
1245BuildWarningEventArgs warningEvent = null; 1249if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1604if (buildEventArgs is BuildWarningEventArgs warningEvent) 2001/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 2003private bool ShouldTreatWarningAsMessage(BuildWarningEventArgs warningEvent) 2023private bool WarningAsErrorNotOverriden(BuildWarningEventArgs warningEvent) 2033/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 2035private bool ShouldTreatWarningAsError(BuildWarningEventArgs warningEvent)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
314BuildWarningEventArgs buildEvent = new BuildWarningEventArgs(
BackEnd\Components\RequestBuilder\TaskHost.cs (2)
446BuildWarningEventArgs warningEvent = new BuildWarningEventArgs( 479public void LogWarningEvent(Microsoft.Build.Framework.BuildWarningEventArgs e)
BackEnd\Shared\EventsCreatorHelper.cs (2)
60public static BuildWarningEventArgs CreateWarningEventFromText(BuildEventContext buildEventContext, string? subcategoryResourceName, string? errorCode, string? helpKeyword, BuildEventFileInfo file, string message) 73BuildWarningEventArgs buildEvent =
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
689eventArgs is not BuildWarningEventArgs)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
63BuildWarningEventArgs buildEvent = EventsCreatorHelper.CreateWarningEventFromText(_eventContext, subcategoryResourceName, errorCode, helpKeyword, file, message);
Instance\TaskFactories\TaskHostTask.cs (2)
653this.BuildEngine.LogWarningEvent((BuildWarningEventArgs)logMessagePacket.NodeBuildEvent.Value.Value); 668else if (buildEvent is BuildWarningEventArgs buildWarningEventArgs)
Instance\TaskFactoryEngineContext.cs (1)
220public void LogWarningEvent(Microsoft.Build.Framework.BuildWarningEventArgs e)
Logging\BaseConsoleLogger.cs (2)
1063public abstract void WarningHandler(object sender, BuildWarningEventArgs e); 1179internal List<BuildWarningEventArgs> warningList;
Logging\BinaryLogger\BuildEventArgsWriter.cs (3)
213case BuildWarningEventArgs buildWarning: return Write(buildWarning); 488private BinaryLogRecordKind Write(BuildWarningEventArgs e) 857(BuildMessageEventArgs or BuildWarningEventArgs or BuildErrorEventArgs))
Logging\BinaryLogger\EventArgsDispatcher.cs (1)
153else if (buildEvent is BuildWarningEventArgs buildWarningEventArgs)
Logging\ConsoleLogger.cs (1)
450public void WarningHandler(object sender, BuildWarningEventArgs e)
Logging\ParallelLogger\ParallelConsoleLogger.cs (4)
191warningList = new List<BuildWarningEventArgs>(); 368foreach (BuildWarningEventArgs warning in warningList) 498else if (errorWarningEvent is BuildWarningEventArgs buildWarningEventArgs) 1073public override void WarningHandler(object sender, BuildWarningEventArgs e)
Logging\ReusableLogger.cs (1)
508private void WarningRaisedHandler(object sender, BuildWarningEventArgs e) => WarningRaised?.Invoke(sender, e);
Logging\SimpleErrorLogger.cs (1)
63private void HandleWarningEvent(object sender, BuildWarningEventArgs e)
Logging\TerminalLogger\TerminalLogger.cs (3)
1336private void WarningRaised(object sender, BuildWarningEventArgs e) 1371private static Uri? GenerateLinkForWarning(BuildWarningEventArgs e) 1610private string FormatWarningMessage(BuildWarningEventArgs e, string indent) => FormatEventMessage(
LogMessagePacketBase.cs (6)
58/// Event is a <see cref="BuildWarningEventArgs"/>. 717else if (eventType == typeof(BuildWarningEventArgs)) 768WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 781private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 904private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 927BuildWarningEventArgs buildEvent =
TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
Microsoft.Build.Engine.UnitTests (37)
BackEnd\BuildManager_Logging_Tests.cs (1)
81public void Build_WithCustomBuildArgs_ShouldEmitWarningOnFramework() => Build_WithCustomBuildArgs_ShouldEmitEvent<BuildWarningEventArgs>();
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)
714private static readonly BuildWarningEventArgs BuildWarningEventForTreatAsErrorOrMessageTests = new BuildWarningEventArgs("subcategory", "C94A41A90FFB4EF592BF98BA59BEE8AF", "file", 1, 2, 3, 4, "message", "helpKeyword", "senderName"); 766var actualEvent = logger.Warnings.ShouldHaveSingleItem(); 794BuildWarningEventArgs warningArgs = new("abc", "FOR123", "", 0, 0, 0, 0, "warning message", "keyword", "sender");
BackEnd\LoggingServicesLogMethod_Tests.cs (3)
69BuildWarningEventArgs warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender"); 1728BuildWarningEventArgs buildEvent = new BuildWarningEventArgs( 1741Assert.True(buildEvent.IsEquivalent((BuildWarningEventArgs)service.ProcessedBuildEvent));
BackEnd\NodePackets_Tests.cs (1)
56BuildWarningEventArgs warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
BackEnd\TaskExecutionHost_Tests.cs (1)
1190public void LogWarningEvent(BuildWarningEventArgs e)
BackEnd\TaskHost_Tests.cs (9)
218Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 303Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 463Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 481Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 501Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 522Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 1122private BuildWarningEventArgs _lastWarning = null; 1166public BuildWarningEventArgs LastWarning 1302internal void MyCustomWarningHandler(object s, BuildWarningEventArgs e)
BuildEventArgsSerialization_Tests.cs (1)
370var args = new BuildWarningEventArgs(
ConfigureableForwardingLogger_Tests.cs (1)
27private readonly BuildWarningEventArgs _warning = new BuildWarningEventArgs("SubCategoryForSchemaValidationErrors", "MSB4000", "file", 1, 2, 3, 4, "message", "help", "sender");
ConsoleLogger_Tests.cs (6)
497BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 816BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 991BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1052BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1552BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1639BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
Construction\SolutionProjectGenerator_Tests.cs (2)
348BuildWarningEventArgs warning = logger.Warnings[0]; 2120BuildWarningEventArgs warning = logger.Warnings[0];
EventArgsFormatting_Tests.cs (1)
111BuildWarningEventArgs warning = new BuildWarningEventArgs("CS", "312", "source.cs", 42, 0, 0, 0, "message\r Hello", "help", "sender");
TerminalLogger_Tests.cs (4)
67case BuildWarningEventArgs e: 128public void InvokeWarningRaised(BuildWarningEventArgs args) => WarningRaised?.Invoke(_eventSender, args); 324private BuildWarningEventArgs MakeCopyRetryWarning(int retryCount, BuildEventContext? buildEventContext = null) 377private BuildWarningEventArgs MakeWarningEventArgs(string warning, string? link = null, string? keyword = null, BuildEventContext? buildEventContext = null)
WarningsAsMessagesAndErrors_Tests.cs (1)
240BuildWarningEventArgs actualEvent = logger.Warnings.FirstOrDefault();
Microsoft.Build.Framework (5)
IBuildEngine.cs (1)
30void LogWarningEvent(BuildWarningEventArgs e);
IEventSource.cs (1)
23public delegate void BuildWarningEventHandler(object sender, BuildWarningEventArgs e);
Utilities\EventArgsFormatting.cs (3)
41internal static string FormatEventMessage(BuildWarningEventArgs e, bool showProjectFile, string projectConfigurationDescription) 103internal static string FormatEventMessage(BuildWarningEventArgs e) 120internal static string FormatEventMessage(BuildWarningEventArgs e, bool showProjectFile)
Microsoft.Build.Framework.UnitTests (6)
BuildWarningEventArgs_Tests.cs (2)
21private BuildWarningEventArgs _baseWarningEvent = new BuildWarningEventArgs("Subcategory", "Code", "File", 1, 2, 3, 4, "Message", "HelpKeyword", "sender"); 29BuildWarningEventArgs buildWarningEvent = new BuildWarningEventArgs2();
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)
TestUtilities\ErrorLoggerEngine.cs (2)
31new Type[] { typeof(BuildWarningEventArgs) }, null) ?? throw new Exception("Could not find FormatEventMessage(BuildWarningEventArgs)."); 46public void LogWarningEvent(BuildWarningEventArgs eventArgs)
TestUtilities\MockEngine.cs (1)
34public void LogWarningEvent(BuildWarningEventArgs eventArgs)
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
83rarTask.BuildEngine.LogWarningEvent((BuildWarningEventArgs)buildEvent);
AssemblyDependency\Node\RarNodeBuildEngine.cs (1)
105public void LogWarningEvent(BuildWarningEventArgs e) => LogEvent(e);
LogMessagePacketBase.cs (6)
58/// Event is a <see cref="BuildWarningEventArgs"/>. 717else if (eventType == typeof(BuildWarningEventArgs)) 768WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 781private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 904private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 927BuildWarningEventArgs buildEvent =
Microsoft.Build.UnitTests.Shared (9)
BuildEventArgsExtension.cs (2)
168public static bool IsEquivalent(this BuildWarningEventArgs args, BuildWarningEventArgs other)
MockEngine.cs (4)
44private readonly ConcurrentQueue<BuildWarningEventArgs> _warningEvents = new ConcurrentQueue<BuildWarningEventArgs>(); 59public BuildWarningEventArgs[] WarningEvents => _warningEvents.ToArray(); 118public void LogWarningEvent(BuildWarningEventArgs eventArgs)
MockLogger.cs (3)
68public List<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 279case BuildWarningEventArgs w:
Microsoft.Build.Utilities.Core (4)
Logger.cs (1)
55public virtual string FormatWarningEvent(BuildWarningEventArgs args) => EventArgsFormatting.FormatEventMessage(args);
MuxLogger.cs (2)
713private void RaiseWarningEvent(object sender, BuildWarningEventArgs buildEvent) 1209bool eventIsErrorOrWarning = (buildEvent is BuildWarningEventArgs) || (buildEvent is BuildErrorEventArgs);
TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
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;
MockEngine.cs (1)
51public void LogWarningEvent(BuildWarningEventArgs eventArgs)
TrackedDependencies\MockEngine.cs (1)
56public void LogWarningEvent(BuildWarningEventArgs eventArgs)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
31private void OnWarningRaised(object sender, MSB.Framework.BuildWarningEventArgs e)
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
197private void OnWarningRaised(object sender, BuildWarningEventArgs e) =>
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
TestBuildEngine.cs (1)
51public void LogWarningEvent(BuildWarningEventArgs e)
Microsoft.DotNet.NuGetRepack.Tests (3)
TestHelpers\FakeBuildEngine.cs (3)
23public List<BuildWarningEventArgs> LogWarningEvents = 24new List<BuildWarningEventArgs>(); 63public void LogWarningEvent(BuildWarningEventArgs e)
Microsoft.DotNet.SignTool.Tests (4)
FakeBuildEngine.cs (3)
25public List<BuildWarningEventArgs> LogWarningEvents = 26new List<BuildWarningEventArgs>(); 115public void LogWarningEvent(BuildWarningEventArgs e)
SignToolTests.cs (1)
3929public void LogWarningEvent(BuildWarningEventArgs e) => _innerEngine.LogWarningEvent(e);
Microsoft.Extensions.ApiDescription.Client.Tests (1)
MockBuildEngine.cs (1)
72public void LogWarningEvent(BuildWarningEventArgs eventArgs)
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
199 var data = new BuildWarningEventArgs( 314 LogInternal<BuildWarningEventArgs>(warningMessageQueue, (e) =>
MSBuild (7)
LogMessagePacketBase.cs (5)
717else if (eventType == typeof(BuildWarningEventArgs)) 768WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 781private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 904private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 927BuildWarningEventArgs buildEvent =
OutOfProcTaskHostNode.cs (2)
435public void LogWarningEvent(BuildWarningEventArgs e) 1779BuildWarningEventArgs warning = new BuildWarningEventArgs(
MSBuildTaskHost (6)
BackEnd\LogMessagePacketBase.cs (4)
399else if (eventType == typeof(BuildWarningEventArgs)) 443WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 454private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 559private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string? message, string? helpKeyword, string? senderName)
OutOfProcTaskHostNode.cs (2)
240public void LogWarningEvent(BuildWarningEventArgs e) 890BuildWarningEventArgs warningArgs = new(