Base:
property
Message
Microsoft.Build.Framework.BuildEventArgs.Message
10 overrides of Message
Microsoft.Build.Framework (10)
1 write to Message
Microsoft.Build.Framework (1)
276 references to Message
Microsoft.Arcade.Test.Common (5)
Microsoft.Build (32)
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
424Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
452e.Message,
494Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
535Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
576Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.Message));
EventArgsFormatting.cs (8)
28return FormatEventMessage("error", e.Subcategory, e.Message,
43return FormatEventMessage("warning", e.Subcategory, e.Message,
59return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
75return FormatEventMessage("error", e.Subcategory, e.Message,
92return FormatEventMessage("error", e.Subcategory, e.Message,
108return FormatEventMessage("warning", e.Subcategory, e.Message,
125return FormatEventMessage("warning", e.Subcategory, e.Message,
154return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
Microsoft.Build.Engine.OM.UnitTests (1)
Microsoft.Build.Engine.UnitTests (94)
BackEnd\SdkResolverService_Tests.cs (18)
64_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
65_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolver2 running");
66_logger.BuildMessageEvents.Select(i => i.Message).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
67_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
70_logger.Errors[0].Message.ShouldBe(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("FailedToResolveSDK", "notfound", string.Join($"{Environment.NewLine} ", new[] {
77_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING4", "WARNING2" });
133_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
134_logger.BuildMessageEvents.Select(i => i.Message).ShouldNotContain("MockSdkResolver1 running");
135_logger.BuildMessageEvents.Select(i => i.Message).ShouldNotContain("MockSdkResolver2 running");
197_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
198_logger.BuildMessageEvents.Select(i => i.Message).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
214_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolverWithResolvableSdkPattern1 running");
215_logger.BuildMessageEvents.Select(i => i.Message).ShouldNotContain("MockSdkResolver1 running");
228_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverAttempt", nameof(MockResolverReturnsNull), sdk.ToString(), "null",
231_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SucceededToResolveSDK", sdk.ToString(), nameof(MockSdkResolver1), result.Path, result.Version));
264_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolver1 running");
265_logger.BuildMessageEvents.Select(i => i.Message).ShouldContain("MockSdkResolver2 running");
268_logger.Warnings.Select(i => i.Message).ShouldBe(new[] { "WARNING2" });
BackEnd\TaskHost_Tests.cs (24)
137Assert.Equal("Your code failed.", customBuildError.Message);
162Assert.Equal("Your code failed.", customBuildWarning.Message);
186Assert.Equal("I am a message", customMessage.Message);
327Assert.Equal("testCustomBuildEvent", _customLogger.LastCustom.Message);
343Assert.Contains("SubCategory", _customLogger.LastError.Message); // "Expected line number to be 0"
357Assert.Contains("SubCategory", _customLogger.LastWarning.Message); // "Expected line number to be 0"
371Assert.Contains("message", _customLogger.LastMessage.Message); // "Expected Message importance to be high"
385Assert.Equal("testCustomBuildEvent", _customLogger.LastCustom.Message);
401Assert.Equal("ext message", _customLogger.LastCustom.Message);
414Assert.Equal("ext err message", _customLogger.LastError.Message);
427Assert.Equal("ext warn message", _customLogger.LastWarning.Message);
440Assert.Equal("ext message", _customLogger.LastMessage.Message);
461Assert.Contains(message, _customLogger.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"
480Assert.Contains(message, _customLogger.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"
500Assert.Contains(message, _customLogger.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"
520Assert.Contains(message, _customLogger.LastWarning.Message); // "Expected line to contain NotSerializable message but it did not"
1294if (e.Message != null)
1296Console.Out.WriteLine("CustomError:" + e.Message);
1307if (e.Message != null)
1309Console.Out.WriteLine("CustomWarning:" + e.Message);
1320if (e.Message != null)
1322Console.Out.WriteLine("CustomMessage:" + e.Message);
1333if (e.Message != null)
1335Console.Out.WriteLine("CustomEvent:" + e.Message);
BuildEventArgsSerialization_Tests.cs (20)
65e => e.Message,
108e => e.Message,
268e => e.Message,
317e => e.Message,
356e => e.Message,
391e => e.Message,
429e => e.Message,
465e => e.Message,
505e => e.Message,
600desArgs.Message.ShouldBe(args.Message);
651e => e.Message,
689e => e.Message,
714e => e.Message,
755e => e.Message,
775e => e.Message,
810e => e.Message,
836e => e.Message,
910e => e.Message,
930e => e.Message,
Microsoft.Build.Framework (3)
Microsoft.Build.Framework.UnitTests (1)
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (6)
Microsoft.Build.Tasks.UnitTests (9)
Microsoft.Build.UnitTests.Shared (13)
Microsoft.Build.Utilities.Core (11)
EventArgsFormatting.cs (8)
28return FormatEventMessage("error", e.Subcategory, e.Message,
43return FormatEventMessage("warning", e.Subcategory, e.Message,
59return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
75return FormatEventMessage("error", e.Subcategory, e.Message,
92return FormatEventMessage("error", e.Subcategory, e.Message,
108return FormatEventMessage("warning", e.Subcategory, e.Message,
125return FormatEventMessage("warning", e.Subcategory, e.Message,
154return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
Microsoft.Build.Utilities.UnitTests (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
MSBuild\Logging\MSBuildDiagnosticLogger.cs (2)
28_log?.Add(new MSBuildDiagnosticLogItem(DiagnosticLogItemKind.Error, _projectFilePath, e.Message ?? "", e.File, e.LineNumber, e.ColumnNumber));
34_log?.Add(new MSBuildDiagnosticLogItem(DiagnosticLogItemKind.Warning, _projectFilePath, e.Message ?? "", e.File, e.LineNumber, e.ColumnNumber));
Microsoft.DotNet.ArcadeLogging (2)
PipelinesLogger.cs (2)
195LogErrorOrWarning(isError: true, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext);
198LogErrorOrWarning(isError: false, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.Message, e.BuildEventContext);
Microsoft.DotNet.Build.Tasks.Feed.Tests (21)
PublishToSymbolServerTest.cs (18)
122Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("No assets to publish"));
141Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("No target symbol servers"));
164Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Publishing Symbols to Symbol server"));
165var message = buildEngine.BuildMessageEvents.Single(x => x.Message.StartsWith("Publishing Symbols to Symbol server"));
166Assert.Contains("Symbol package count: 1", message.Message);
167Assert.Contains("Loose symbol file count: 1", message.Message);
169Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.Contains("Creating symbol request"));
170Assert.Equal(2, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains("Adding directory")).Count());
173Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains($"Extracting symbol package")).Count());
174Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.Message.Contains($"Adding package")).Count());
177Assert.Contains(buildEngine.BuildMessageEvents , x => x.Message.Contains("Skipping lib/net8.0/aztoken.dll"));
178Assert.Contains(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Finished publishing symbols to temporary azdo org"));
179Assert.Single(buildEngine.BuildMessageEvents, x => x.Message.StartsWith("Would register request"));
180Microsoft.Build.Framework.BuildMessageEventArgs registerLog = buildEngine.BuildMessageEvents.Where(x => x.Message.StartsWith("Would register request")).Single();
181Assert.Contains("project dotnettest", registerLog.Message);
182Assert.Contains("environment PPE", registerLog.Message);
183Assert.Contains("visibility Public", registerLog.Message);
184Assert.Contains("to last 3650 days", registerLog.Message);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (4)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (3)
Microsoft.DotNet.Helix.Sdk.Tests (8)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.SignTool.Tests (9)
Microsoft.Extensions.ApiDescription.Client.Tests (4)
Microsoft.Maui.Resizetizer (3)
MSBuild (17)
EventArgsFormatting.cs (8)
28return FormatEventMessage("error", e.Subcategory, e.Message,
43return FormatEventMessage("warning", e.Subcategory, e.Message,
59return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
75return FormatEventMessage("error", e.Subcategory, e.Message,
92return FormatEventMessage("error", e.Subcategory, e.Message,
108return FormatEventMessage("warning", e.Subcategory, e.Message,
125return FormatEventMessage("warning", e.Subcategory, e.Message,
154return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.Message,
XmlFileLogger (14)