2 types derived from BuildWarningEventArgs
Microsoft.Build.Framework (2)
BuildCheck\BuildCheckEventArgs.cs (1)
159internal sealed class BuildCheckResultWarning : BuildWarningEventArgs
ExtendedBuildWarningEventArgs.cs (1)
15public sealed class ExtendedBuildWarningEventArgs : BuildWarningEventArgs, IExtendedBuildEventArgs
14 instantiations of BuildWarningEventArgs
Microsoft.Build (7)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
315BuildWarningEventArgs 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)
941e = new BuildWarningEventArgs(
src\msbuild\src\Shared\LogMessagePacketBase.cs (2)
513LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 938new BuildWarningEventArgs(
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
Microsoft.Build.Tasks.Core (2)
src\msbuild\src\Shared\LogMessagePacketBase.cs (2)
513LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 938new BuildWarningEventArgs(
Microsoft.Build.Utilities.Core (1)
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
199 var data = new BuildWarningEventArgs(
MSBuild (3)
OutOfProcTaskHostNode.cs (1)
1775BuildWarningEventArgs warning = new BuildWarningEventArgs(
src\msbuild\src\Shared\LogMessagePacketBase.cs (2)
513LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 938new BuildWarningEventArgs(
77 references to BuildWarningEventArgs
Microsoft.Build (43)
BackEnd\Components\Logging\EventSourceSink.cs (2)
287case BuildWarningEventArgs buildWarningEvent: 344case BuildWarningEventArgs:
BackEnd\Components\Logging\LoggingService.cs (8)
1243BuildWarningEventArgs warningEvent = null; 1247if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1602if (buildEventArgs is BuildWarningEventArgs warningEvent) 1995/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 1997private bool ShouldTreatWarningAsMessage(BuildWarningEventArgs warningEvent) 2017private bool WarningAsErrorNotOverriden(BuildWarningEventArgs warningEvent) 2027/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 2029private bool ShouldTreatWarningAsError(BuildWarningEventArgs warningEvent)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
315BuildWarningEventArgs 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)
676this.BuildEngine.LogWarningEvent((BuildWarningEventArgs)logMessagePacket.NodeBuildEvent.Value.Value); 691else 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); 513private BinaryLogRecordKind Write(BuildWarningEventArgs e) 882(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>(); 386foreach (BuildWarningEventArgs warning in warningList) 516else if (errorWarningEvent is BuildWarningEventArgs buildWarningEventArgs) 1091public 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)
1355private void WarningRaised(object sender, BuildWarningEventArgs e) 1390private static Uri? GenerateLinkForWarning(BuildWarningEventArgs e) 1629private string FormatWarningMessage(BuildWarningEventArgs e, string indent) => FormatEventMessage(
src\msbuild\src\Shared\LogMessagePacketBase.cs (6)
58/// Event is a <see cref="BuildWarningEventArgs"/>. 727else if (eventType == typeof(BuildWarningEventArgs)) 778WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 791private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 914private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 937BuildWarningEventArgs buildEvent =
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
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.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);
src\msbuild\src\Shared\LogMessagePacketBase.cs (6)
58/// Event is a <see cref="BuildWarningEventArgs"/>. 727else if (eventType == typeof(BuildWarningEventArgs)) 778WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 791private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 914private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 937BuildWarningEventArgs buildEvent =
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);
src\msbuild\src\Shared\TaskLoggingHelper.cs (1)
1060var e = new BuildWarningEventArgs(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
31private void OnWarningRaised(object sender, MSB.Framework.BuildWarningEventArgs e)
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
199 var data = new BuildWarningEventArgs( 314 LogInternal<BuildWarningEventArgs>(warningMessageQueue, (e) =>
MSBuild (8)
OutOfProcTaskHostNode.cs (2)
435public void LogWarningEvent(BuildWarningEventArgs e) 1775BuildWarningEventArgs warning = new BuildWarningEventArgs(
src\msbuild\src\Shared\LogMessagePacketBase.cs (6)
58/// Event is a <see cref="BuildWarningEventArgs"/>. 727else if (eventType == typeof(BuildWarningEventArgs)) 778WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 791private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 914private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 937BuildWarningEventArgs buildEvent =
NuGet.Build.Tasks (3)
ConsoleOutLogItem.cs (3)
51/// Implicitly converts a <see cref="BuildWarningEventArgs" /> object to a <see cref="ConsoleOutLogItem" /> object. 53/// <param name="buildWarningEventArgs">The <see cref="BuildWarningEventArgs" /> object to convert.</param> 54public static implicit operator ConsoleOutLogItem(BuildWarningEventArgs buildWarningEventArgs)
NuGet.Build.Tasks.Console (3)
ConsoleLoggingQueue.cs (3)
132void IBuildEngine.LogWarningEvent(BuildWarningEventArgs e) => OnWarningRaised(this, e); 179/// <param name="e">The <see cref="BuildWarningEventArgs" /> containing the details of the message event.</param> 180private void OnWarningRaised(object sender, BuildWarningEventArgs e) => Enqueue(e);