3 types derived from BuildWarningEventArgs
Microsoft.Build.Framework (3)
AssemblyReferenceConflictEventArgs.cs (1)
522public sealed class AssemblyConflictWarningEventArgs : BuildWarningEventArgs
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)
499return new BuildWarningEventArgs(
BackEnd\Shared\EventsCreatorHelper.cs (1)
74new BuildWarningEventArgs(
Logging\BinaryLogger\BuildEventArgsReader.cs (1)
1223e = new BuildWarningEventArgs(
parent\Shared\LogMessagePacketBase.cs (2)
485LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 929new BuildWarningEventArgs(
parent\Shared\TaskLoggingHelper.cs (1)
1072var e = new BuildWarningEventArgs(
Microsoft.Build.Tasks.Core (2)
parent\Shared\LogMessagePacketBase.cs (2)
485LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 929new BuildWarningEventArgs(
Microsoft.Build.Utilities.Core (1)
parent\Shared\TaskLoggingHelper.cs (1)
1072var e = new BuildWarningEventArgs(
Microsoft.Maui.Resizetizer (1)
AsyncTask.cs (1)
199 var data = new BuildWarningEventArgs(
MSBuild (3)
OutOfProcTaskHostNode.cs (1)
2079BuildWarningEventArgs warning = new(
parent\Shared\LogMessagePacketBase.cs (2)
485LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 929new BuildWarningEventArgs(
74 references to BuildWarningEventArgs
Microsoft.Build (40)
BackEnd\Components\Logging\EventSourceSink.cs (2)
286case BuildWarningEventArgs buildWarningEvent: 343case BuildWarningEventArgs:
BackEnd\Components\Logging\LoggingService.cs (3)
1298BuildWarningEventArgs warningEvent = null; 1302if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1665if (buildEventArgs is BuildWarningEventArgs warningEvent)
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (1)
315BuildWarningEventArgs buildEvent = new BuildWarningEventArgs(
BackEnd\Components\RequestBuilder\TaskHost.cs (4)
450BuildWarningEventArgs warningEvent = CreateWarningFromError(e); 469/// Builds the <see cref="BuildWarningEventArgs"/> counterpart of an error that <c>ContinueOnError</c> 474private static BuildWarningEventArgs CreateWarningFromError(BuildErrorEventArgs error) 520public 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)
691eventArgs is not BuildWarningEventArgs)
BuildCheck\Infrastructure\CheckContext\CheckDispatchingContext.cs (1)
63BuildWarningEventArgs buildEvent = EventsCreatorHelper.CreateWarningEventFromText(_eventContext, subcategoryResourceName, errorCode, helpKeyword, file, message);
Instance\TaskFactories\TaskHostTask.cs (1)
763case BuildWarningEventArgs warning:
Instance\TaskFactoryEngineContext.cs (1)
219public void LogWarningEvent(Microsoft.Build.Framework.BuildWarningEventArgs e)
Logging\BaseConsoleLogger.cs (2)
1062public abstract void WarningHandler(object sender, BuildWarningEventArgs e); 1178internal List<BuildWarningEventArgs> warningList;
Logging\BinaryLogger\BuildEventArgsWriter.cs (4)
252case BuildWarningEventArgs buildWarning: return Write(buildWarning); 336BuildWarningEventArgs => BinaryLogRecordKind.Warning, 590private BinaryLogRecordKind Write(BuildWarningEventArgs e) 1091(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)
530private 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)
1366private void WarningRaised(object sender, BuildWarningEventArgs e) 1402private static Uri? GenerateLinkForWarning(BuildWarningEventArgs e) 1693private string FormatWarningMessage(BuildWarningEventArgs e, string? message, string indent) => FormatEventMessage(
parent\Shared\LogMessagePacketBase.cs (6)
57/// Event is a <see cref="BuildWarningEventArgs"/>. 718else if (eventType == typeof(BuildWarningEventArgs)) 769WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 782private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 905private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 928BuildWarningEventArgs buildEvent =
parent\Shared\TaskLoggingHelper.cs (1)
1072var 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)
62internal static string FormatEventMessage(BuildWarningEventArgs e, bool showProjectFile, string projectConfigurationDescription) 124internal static string FormatEventMessage(BuildWarningEventArgs e) 141internal static string FormatEventMessage(BuildWarningEventArgs e, bool showProjectFile)
Microsoft.Build.Tasks.Core (8)
AssemblyDependency\Node\OutOfProcRarClient.cs (1)
100case BuildWarningEventArgs warning:
AssemblyDependency\Node\RarNodeBuildEngine.cs (1)
105public void LogWarningEvent(BuildWarningEventArgs e) => LogEvent(e);
parent\Shared\LogMessagePacketBase.cs (6)
57/// Event is a <see cref="BuildWarningEventArgs"/>. 718else if (eventType == typeof(BuildWarningEventArgs)) 769WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 782private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 905private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 928BuildWarningEventArgs 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);
parent\Shared\TaskLoggingHelper.cs (1)
1072var e = new BuildWarningEventArgs(
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (1)
43private void OnWarningRaised(object sender, MSB.Framework.BuildWarningEventArgs e)
Microsoft.DotNet.ArcadeLogging (1)
PipelinesLogger.cs (1)
54private void OnWarningRaised(object sender, BuildWarningEventArgs e) =>
Microsoft.Maui.Resizetizer (2)
AsyncTask.cs (2)
199 var data = new BuildWarningEventArgs( 314 LogInternal<BuildWarningEventArgs>(warningMessageQueue, (e) =>
Microsoft.NET.ProjectData.Tasks (1)
ProjectDataBuildCompletionLogger.cs (1)
129 case BuildWarningEventArgs warning:
MSBuild (7)
OutOfProcTaskHostNode.cs (2)
489public void LogWarningEvent(BuildWarningEventArgs e) 2079BuildWarningEventArgs warning = new(
parent\Shared\LogMessagePacketBase.cs (5)
718else if (eventType == typeof(BuildWarningEventArgs)) 769WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 782private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 905private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 928BuildWarningEventArgs 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 (2)
ConsoleLoggingQueue.cs (2)
132void IBuildEngine.LogWarningEvent(BuildWarningEventArgs e) => OnWarningRaised(this, e); 180private void OnWarningRaised(object sender, BuildWarningEventArgs e) => Enqueue(e);