5 types derived from BuildWarningEventArgs
Microsoft.Build.Engine.UnitTests (2)
BackEnd\TaskHost_Tests.cs (2)
947internal sealed class MyCustomBuildWarningEventArgs : BuildWarningEventArgs 1077internal sealed class MyCustomBuildWarningEventArgsNotSerializable : BuildWarningEventArgs
Microsoft.Build.Framework (2)
BuildCheck\BuildCheckEventArgs.cs (1)
160internal sealed class BuildCheckResultWarning : BuildWarningEventArgs
ExtendedBuildWarningEventArgs.cs (1)
18public sealed class ExtendedBuildWarningEventArgs : BuildWarningEventArgs, IExtendedBuildEventArgs
Microsoft.Build.Framework.UnitTests (1)
BuildWarningEventArgs_Tests.cs (1)
53private sealed class BuildWarningEventArgs2 : BuildWarningEventArgs
55 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)
562LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 1210new BuildWarningEventArgs(
TaskLoggingHelper.cs (1)
1062var 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)
295_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)
465es.Consume(new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null) { BuildEventContext = new BuildEventContext(1, 1, 1, 1) }); 498BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 648buildEventArgs = new BuildWarningEventArgs(subcategory, code, file, lineNumber, columnNumber, endLineNumber, endColumnNumber, message, helpKeyword, senderName); 817BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 992BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1053BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1537BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1624BuildWarningEventArgs 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)
258return new BuildWarningEventArgs("", "MSB3026", "directory/file", 1, 2, 3, 4, 311return 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.Utilities.Core (1)
TaskLoggingHelper.cs (1)
1062var 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)
562LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 1210new BuildWarningEventArgs(
OutOfProcTaskHostNode.cs (1)
1253BuildWarningEventArgs warning = new BuildWarningEventArgs(
MSBuildTaskHost (3)
LogMessagePacketBase.cs (2)
562LoggingEventType.BuildWarningEvent => new BuildWarningEventArgs(null, null, null, -1, -1, -1, -1, null, null, null), 1210new BuildWarningEventArgs(
OutOfProcTaskHostNode.cs (1)
1253BuildWarningEventArgs warning = new BuildWarningEventArgs(
171 references to BuildWarningEventArgs
dotnet-watch.Tests (3)
MockBuildEngine.cs (3)
45public void LogWarningEvent(BuildWarningEventArgs e) 77public IList<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>();
Microsoft.Arcade.Test.Common (6)
MockBuildEngine.cs (3)
24public List<BuildWarningEventArgs> BuildWarningEvents = new List<BuildWarningEventArgs>(); 46public void LogWarningEvent(BuildWarningEventArgs e)
MockEngine.cs (3)
25public ICollection<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 44public void LogWarningEvent(BuildWarningEventArgs e)
Microsoft.Build (46)
BackEnd\Components\Logging\EventSourceSink.cs (2)
287case BuildWarningEventArgs buildWarningEvent: 344case BuildWarningEventArgs:
BackEnd\Components\Logging\LoggingService.cs (8)
1223BuildWarningEventArgs warningEvent = null; 1227if ((warningEvent = buildEvent as BuildWarningEventArgs) != null && warningEvent.BuildEventContext != null && warningEvent.BuildEventContext.ProjectContextId != BuildEventContext.InvalidProjectContextId) 1552if (buildEventArgs is BuildWarningEventArgs warningEvent) 1942/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 1944private bool ShouldTreatWarningAsMessage(BuildWarningEventArgs warningEvent) 1964private bool WarningAsErrorNotOverriden(BuildWarningEventArgs warningEvent) 1974/// <param name="warningEvent">A <see cref="BuildWarningEventArgs"/> that specifies the warning.</param> 1976private 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);
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)
Instance\TaskFactories\TaskHostTask.cs (2)
602this.BuildEngine.LogWarningEvent((BuildWarningEventArgs)logMessagePacket.NodeBuildEvent.Value.Value); 617else 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)
1200private void WarningRaised(object sender, BuildWarningEventArgs e) 1238private static Uri? GenerateLinkForWarning(BuildWarningEventArgs e) 1465private string FormatWarningMessage(BuildWarningEventArgs e, string indent)
LogMessagePacketBase.cs (6)
65/// Event is a <see cref="BuildWarningEventArgs"/>. 778else if (eventType == typeof(BuildWarningEventArgs)) 839WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 852private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 1186private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1209BuildWarningEventArgs buildEvent =
TaskLoggingHelper.cs (1)
1062var e = new BuildWarningEventArgs(
Microsoft.Build.Engine.UnitTests (35)
BackEnd\BuildManager_Logging_Tests.cs (1)
82public 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)
1187public void LogWarningEvent(BuildWarningEventArgs e)
BackEnd\TaskHost_Tests.cs (9)
213Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 298Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 458Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 476Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 496Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 517Assert.True(_customLogger.LastWarning is BuildWarningEventArgs); // "Expected Warning Event" 1123private BuildWarningEventArgs _lastWarning = null; 1167public BuildWarningEventArgs LastWarning 1303internal 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)
498BuildWarningEventArgs bwea = new BuildWarningEventArgs(null, null, null, 0, 0, 0, 0, null, null, null); 817BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 992BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1053BuildWarningEventArgs beea = new BuildWarningEventArgs("VBC", 1537BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender"); 1624BuildWarningEventArgs bwea = new BuildWarningEventArgs("VBC", "31415", "file.vb", 42, 0, 0, 0, "Some long message", "help", "sender");
Construction\SolutionProjectGenerator_Tests.cs (2)
349BuildWarningEventArgs warning = logger.Warnings[0]; 2121BuildWarningEventArgs 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 (2)
256private BuildWarningEventArgs MakeCopyRetryWarning(int retryCount, BuildEventContext? buildEventContext = null) 309private BuildWarningEventArgs MakeWarningEventArgs(string warning, string? link = null, string? keyword = null, BuildEventContext? buildEventContext = null)
WarningsAsMessagesAndErrors_Tests.cs (1)
235BuildWarningEventArgs actualEvent = logger.Warnings.FirstOrDefault();
Microsoft.Build.Framework (2)
IBuildEngine.cs (1)
30void LogWarningEvent(BuildWarningEventArgs e);
IEventSource.cs (1)
23public delegate void BuildWarningEventHandler(object sender, BuildWarningEventArgs e);
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 (1)
AssemblyDependency\Node\RarNodeBuildEngine.cs (1)
65public void LogWarningEvent(BuildWarningEventArgs e)
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)
69public List<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>(); 280case BuildWarningEventArgs w:
Microsoft.Build.Utilities.Core (7)
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)
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)
1062var 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)
194private 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 (3)
FakeBuildEngine.cs (3)
25public List<BuildWarningEventArgs> LogWarningEvents = 26new List<BuildWarningEventArgs>(); 115public void LogWarningEvent(BuildWarningEventArgs 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) =>
Microsoft.NET.Build.Containers.IntegrationTests (10)
FullFramework\CreateNewImageToolTaskTests.cs (10)
202A.CallTo(() => buildEngine.LogWarningEvent(A<BuildWarningEventArgs>.Ignored)).Invokes((BuildWarningEventArgs e) => warnings.Add(e.Message)); 248A.CallTo(() => buildEngine.LogWarningEvent(A<BuildWarningEventArgs>.Ignored)).Invokes((BuildWarningEventArgs e) => warnings.Add(e.Message)); 299A.CallTo(() => buildEngine.LogWarningEvent(A<BuildWarningEventArgs>.Ignored)).Invokes((BuildWarningEventArgs e) => warnings.Add(e.Message)); 443A.CallTo(() => buildEngine.LogWarningEvent(A<BuildWarningEventArgs>.Ignored)).Invokes((BuildWarningEventArgs e) => warnings.Add(e.Message)); 480A.CallTo(() => buildEngine.LogWarningEvent(A<BuildWarningEventArgs>.Ignored)).Invokes((BuildWarningEventArgs e) => warnings.Add(e.Message));
Microsoft.NET.Build.Extensions.Tasks.UnitTests (3)
MockBuildEngine.cs (3)
45public void LogWarningEvent(BuildWarningEventArgs e) 77public IList<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>();
Microsoft.NET.Build.Tasks.UnitTests (4)
GivenATaskBase.cs (1)
52BuildWarningEventArgs warning = engine.Warnings[0];
Mocks\MockBuildEngine.cs (3)
45public void LogWarningEvent(BuildWarningEventArgs e) 77public IList<BuildWarningEventArgs> Warnings { get; } = new List<BuildWarningEventArgs>();
Microsoft.NET.Sdk.StaticWebAssets.Tests (2)
StaticWebAssets\ContentTypeProviderTests.cs (1)
197public void LogWarningEvent(BuildWarningEventArgs e) { }
StaticWebAssets\FingerprintPatternMatcherTest.cs (1)
119public void LogWarningEvent(BuildWarningEventArgs e) { }
MSBuild (10)
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)
LogMessagePacketBase.cs (5)
778else if (eventType == typeof(BuildWarningEventArgs)) 839WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 852private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 1186private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1209BuildWarningEventArgs buildEvent =
OutOfProcTaskHostNode.cs (2)
334public void LogWarningEvent(BuildWarningEventArgs e) 1253BuildWarningEventArgs warning = new BuildWarningEventArgs(
MSBuildTaskHost (7)
LogMessagePacketBase.cs (5)
778else if (eventType == typeof(BuildWarningEventArgs)) 839WriteBuildWarningEventToStream((BuildWarningEventArgs)buildEvent, translator); 852private void WriteBuildWarningEventToStream(BuildWarningEventArgs buildWarningEventArgs, ITranslator translator) 1186private BuildWarningEventArgs ReadBuildWarningEventFromStream(ITranslator translator, string message, string helpKeyword, string senderName) 1209BuildWarningEventArgs buildEvent =
OutOfProcTaskHostNode.cs (2)
334public void LogWarningEvent(BuildWarningEventArgs e) 1253BuildWarningEventArgs warning = new BuildWarningEventArgs(