Base:
property
Message
Microsoft.Build.Framework.BuildEventArgs.Message
10 overrides of Message
Microsoft.Build.Framework (10)
AssemblyLoadBuildEventArgs.cs (1)
74
public override string
Message
ProjectFinishedEventArgs.cs (1)
109
public override string
Message
ProjectStartedEventArgs.cs (1)
537
public override string
Message
PropertyReassignmentEventArgs.cs (1)
72
public override string
Message
TargetFinishedEventArgs.cs (1)
176
public override string
Message
TargetSkippedEventArgs.cs (1)
154
public override string
Message
TargetStartedEventArgs.cs (1)
175
public override string
Message
TaskFinishedEventArgs.cs (1)
139
public override string
Message
TaskParameterEventArgs.cs (1)
265
public override string
Message
TaskStartedEventArgs.cs (1)
193
public override string
Message
1 write to Message
Microsoft.Build.Framework (1)
TaskParameterEventArgs.cs (1)
273
base.
Message
= MessageGetter(this);
273 references to Message
Microsoft.Arcade.Test.Common (5)
MockEngine.cs (5)
43
_output?.WriteLine($"{e.Importance} : {e.
Message
}");
49
_output?.WriteLine($"warning {e.Code}: {e.
Message
}");
55
_output?.WriteLine($"error {e.Code}: {e.
Message
}");
59
throw new XunitException("Task error: " + e.
Message
);
65
_output?.WriteLine(e.
Message
?? string.Empty);
Microsoft.Build (32)
BackEnd\Components\Logging\LoggingService.cs (4)
1575
extWarningEvent.
Message
,
1597
warningEvent.
Message
,
1621
extWarningEvent.
Message
,
1642
warningEvent.
Message
,
BackEnd\Components\RequestBuilder\TaskHost.cs (5)
424
Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.
Message
));
452
e.
Message
,
494
Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.
Message
));
535
Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.
Message
));
576
Trace.Fail(String.Format(CultureInfo.CurrentUICulture, "Task at {0}, after already returning, attempted to log '{1}'", _taskLocation.ToString(), e.
Message
));
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
436
evr.
Message
?? string.Empty,
EventArgsFormatting.cs (8)
28
return FormatEventMessage("error", e.Subcategory, e.
Message
,
43
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
59
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
75
return FormatEventMessage("error", e.Subcategory, e.
Message
,
92
return FormatEventMessage("error", e.Subcategory, e.
Message
,
108
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
125
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
154
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
Logging\ParallelLogger\ParallelConsoleLogger.cs (6)
287
WriteLinePretty(e.
Message
);
1217
Console.WriteLine(e.
Message
);
1252
nonNullMessage = ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("EnvironmentDerivedPropertyRead", environmentPropertyReadEventArgs.EnvironmentVariableName, e.
Message
);
1262
nonNullMessage ??= e.
Message
?? string.Empty;
1583
if (e.
Message
!= null)
1587
WriteMessageAligned(e.
Message
, true);
Logging\SerialConsoleLogger.cs (6)
140
WriteLinePretty(e.
Message
);
521
? ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("EnvironmentDerivedPropertyRead", environmentDerivedProperty.EnvironmentVariableName, e.
Message
)
522
: e.
Message
?? String.Empty;
549
if (e.
Message
!= null)
552
WriteLinePretty(e.
Message
);
592
Console.WriteLine(e.
Message
);
TaskLoggingHelper.cs (2)
320
ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.
Message
);
618
ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.
Message
);
Microsoft.Build.Engine.OM.UnitTests (1)
Definition\Project_Tests.cs (1)
4284
Assert.Contains(ImportValue, error.
Message
);
Microsoft.Build.Engine.UnitTests (94)
BackEnd\BuildManager_Tests.cs (4)
1004
var deferredMessages = logger.BuildMessageEvents.Where(e => e.
Message
.StartsWith("deferred")).ToArray();
1008
deferredMessages[0].
Message
.ShouldBe(highMessage);
1010
deferredMessages[1].
Message
.ShouldBe(normalMessage);
1012
deferredMessages[2].
Message
.ShouldBe(lowMessage);
BackEnd\GenerateTemporaryTargetAssembly_Tests.cs (1)
35
logger.Errors.First().
Message
.ShouldBe("Task successfully failed.");
BackEnd\LoggingService_Tests.cs (8)
743
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
Message
, actualBuildEvent.
Message
);
831
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
Message
, actualBuildEvent.
Message
);
881
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
Message
, actualBuildEvent.
Message
);
938
Assert.Equal(BuildWarningEventForTreatAsErrorOrMessageTests.
Message
, actualBuildEvent.
Message
);
BackEnd\SdkResolverService_Tests.cs (18)
66
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolver1 running");
67
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolver2 running");
68
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
69
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
72
_logger.Errors[0].
Message
.ShouldBe(ResourceUtilities.FormatResourceStringIgnoreCodeAndKeyword("FailedToResolveSDK", "notfound", string.Join($"{Environment.NewLine} ", new[] {
79
_logger.Warnings.Select(i => i.
Message
).ShouldBe(new[] { "WARNING4", "WARNING2" });
132
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolverWithResolvableSdkPattern2 running");
133
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldNotContain("MockSdkResolver1 running");
134
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldNotContain("MockSdkResolver2 running");
149
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolver1 running");
150
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldNotContain("MockSdkResolverWithResolvableSdkPattern1 running");
165
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolverWithResolvableSdkPattern1 running");
166
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldNotContain("MockSdkResolver1 running");
178
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SDKResolverAttempt", nameof(MockResolverReturnsNull), sdk.ToString(), "null",
181
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain(ResourceUtilities.FormatResourceStringStripCodeAndKeyword("SucceededToResolveSDK", sdk.ToString(), nameof(MockSdkResolver1), result.Path, result.Version));
212
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolver1 running");
213
_logger.BuildMessageEvents.Select(i => i.
Message
).ShouldContain("MockSdkResolver2 running");
216
_logger.Warnings.Select(i => i.
Message
).ShouldBe(new[] { "WARNING2" });
BackEnd\TargetBuilder_Tests.cs (1)
1378
_mockLogger.Errors[0].
Message
.ShouldBe(errorMessage);
BackEnd\TaskExecutionHost_Tests.cs (1)
1123
messages = ml.BuildMessageEvents.Select(e => e.
Message
).ToList();
BackEnd\TaskHost_Tests.cs (24)
137
Assert.Equal("Your code failed.", customBuildError.
Message
);
162
Assert.Equal("Your code failed.", customBuildWarning.
Message
);
186
Assert.Equal("I am a message", customMessage.
Message
);
327
Assert.Equal("testCustomBuildEvent", _customLogger.LastCustom.
Message
);
343
Assert.Contains("SubCategory", _customLogger.LastError.
Message
); // "Expected line number to be 0"
357
Assert.Contains("SubCategory", _customLogger.LastWarning.
Message
); // "Expected line number to be 0"
371
Assert.Contains("message", _customLogger.LastMessage.
Message
); // "Expected Message importance to be high"
385
Assert.Equal("testCustomBuildEvent", _customLogger.LastCustom.
Message
);
401
Assert.Equal("ext message", _customLogger.LastCustom.
Message
);
414
Assert.Equal("ext err message", _customLogger.LastError.
Message
);
427
Assert.Equal("ext warn message", _customLogger.LastWarning.
Message
);
440
Assert.Equal("ext message", _customLogger.LastMessage.
Message
);
461
Assert.Contains(message, _customLogger.LastWarning.
Message
); // "Expected line to contain NotSerializable message but it did not"
480
Assert.Contains(message, _customLogger.LastWarning.
Message
); // "Expected line to contain NotSerializable message but it did not"
500
Assert.Contains(message, _customLogger.LastWarning.
Message
); // "Expected line to contain NotSerializable message but it did not"
520
Assert.Contains(message, _customLogger.LastWarning.
Message
); // "Expected line to contain NotSerializable message but it did not"
1294
if (e.
Message
!= null)
1296
Console.Out.WriteLine("CustomError:" + e.
Message
);
1307
if (e.
Message
!= null)
1309
Console.Out.WriteLine("CustomWarning:" + e.
Message
);
1320
if (e.
Message
!= null)
1322
Console.Out.WriteLine("CustomMessage:" + e.
Message
);
1333
if (e.
Message
!= null)
1335
Console.Out.WriteLine("CustomEvent:" + e.
Message
);
BuildEventArgsSerialization_Tests.cs (20)
65
e => e.
Message
,
108
e => e.
Message
,
268
e => e.
Message
,
317
e => e.
Message
,
356
e => e.
Message
,
391
e => e.
Message
,
429
e => e.
Message
,
465
e => e.
Message
,
505
e => e.
Message
,
600
desArgs.
Message
.ShouldBe(args.
Message
);
651
e => e.
Message
,
689
e => e.
Message
,
714
e => e.
Message
,
755
e => e.
Message
,
775
e => e.
Message
,
810
e => e.
Message
,
836
e => e.
Message
,
910
e => e.
Message
,
930
e => e.
Message
,
Construction\SolutionProjectGenerator_Tests.cs (3)
322
Assert.Equal(text, warning.
Message
);
331
Assert.Equal(text, error.
Message
);
1062
Assert.True(buildResult, String.Join(Environment.NewLine, logger.Errors.Select(beea => beea.
Message
)));
Evaluation\ProjectSdkImplicitImport_Tests.cs (2)
493
events[0].
Message
.ShouldStartWith("MSB4236");
497
events[1].
Message
.ShouldStartWith("MSB4236");
Graph\IsolateProjects_Tests.cs (3)
211
.
Message
.ShouldStartWith("MSB4252:");
423
logger.Errors.First().
Message
.ShouldStartWith("MSB4254:");
440
logger.Errors.First().
Message
.ShouldStartWith("MSB4254:");
Graph\ProjectGraph_Tests.cs (1)
1618
string project1ErrorMessage = project1MockLogger.Errors.First().
Message
;
Graph\ResultCacheBasedBuilds_Tests.cs (5)
116
_logger.Errors.First().
Message
.ShouldContain("MSB4255:");
398
results["1"].Logger.Errors.First().
Message
.ShouldContain("MSB4252");
570
_logger.Errors.First().
Message
.ShouldContain("MSB4255:");
571
_logger.Errors.First().
Message
.ShouldContain("FileDoesNotExist1");
572
_logger.Errors.First().
Message
.ShouldContain("FileDoesNotExist2");
WarningsAsMessagesAndErrors_Tests.cs (3)
302
Assert.Equal(ExpectedEventMessage, actualEvent.
Message
);
314
Assert.Equal(ExpectedEventMessage, actualEvent.
Message
);
322
BuildMessageEventArgs actualEvent = logger.BuildMessageEvents.FirstOrDefault(i => i.
Message
.Equals(ExpectedEventMessage));
Microsoft.Build.Framework (3)
TaskCommandLineEventArgs.cs (1)
80
return
Message
;
TaskParameterEventArgs.cs (2)
271
if (base.
Message
== null)
276
return base.
Message
;
Microsoft.Build.Framework.UnitTests (1)
BuildCanceledEventArgs_Tests.cs (1)
37
argDeserialized.
Message
.ShouldBe(message);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (6)
TestUtilities\MockEngine.cs (6)
29
var msg = $"ERROR {eventArgs.Code}: {eventArgs.
Message
}";
36
var msg = $"WARNING {eventArgs.Code}: {eventArgs.
Message
}";
43
_testOutputHelper?.WriteLine(eventArgs.
Message
);
44
_log.AppendLine(eventArgs.
Message
);
49
_testOutputHelper?.WriteLine(eventArgs.
Message
);
50
_log.AppendLine(eventArgs.
Message
);
Microsoft.Build.Tasks.UnitTests (9)
AssemblyDependency\SuggestedRedirects.cs (2)
204
string warningMessage = e.WarningEvents[0].
Message
;
249
string warningMessage = e.WarningEvents[0].
Message
;
CodeTaskFactoryTests.cs (1)
1233
Assert.Contains("CodeTaskFactory", error.
Message
);
Exec_Tests.cs (1)
176
((MockEngine)exec.BuildEngine).WarningEvents.Select(w => w.
Message
)));
ResourceManagement_Tests.cs (4)
27
var filteredMessages = messages.Where(m => m.
Message
.StartsWith("Number of cores acquired: ")).ToArray();
42
var filteredMessages = messages.Where(m => m.
Message
.StartsWith("Number of cores acquired: ")).ToArray();
69
var filteredMessages = messages.Where(m => m.
Message
.StartsWith("Number of cores acquired: ")).ToArray();
154
string[] messageComponents = msg.
Message
.Split(' ');
RoslynCodeTaskFactory_Tests.cs (1)
210
.Where(m => m.
Message
== "Compiling task source code")
Microsoft.Build.UnitTests.Shared (13)
MockEngine.cs (8)
92
message += eventArgs.
Message
;
121
message += eventArgs.
Message
;
139
Console.WriteLine(eventArgs.
Message
);
142
_output?.WriteLine(eventArgs.
Message
);
143
_log.AppendLine(eventArgs.
Message
);
153
Console.WriteLine(eventArgs.
Message
);
156
_output?.WriteLine(eventArgs.
Message
);
157
_log.AppendLine(eventArgs.
Message
);
MockLogger.cs (3)
283
if (w.Code != "MSB4056" && !w.
Message
.Contains("MSB4056"))
285
string logMessage = $"{w.File}({w.LineNumber},{w.ColumnNumber}): {w.Subcategory} warning {w.Code}: {w.
Message
}";
296
string logMessage = $"{e.File}({e.LineNumber},{e.ColumnNumber}): {e.Subcategory} error {e.Code}: {e.
Message
}";
ObjectModelHelpers.cs (2)
1520
mockLogger.Errors[0].
Message
.ShouldContain(testProjectFile);
1528
mockLogger.Warnings[0].
Message
.ShouldContain(testProjectFile);
Microsoft.Build.Utilities.Core (11)
EventArgsFormatting.cs (8)
28
return FormatEventMessage("error", e.Subcategory, e.
Message
,
43
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
59
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
75
return FormatEventMessage("error", e.Subcategory, e.
Message
,
92
return FormatEventMessage("error", e.Subcategory, e.
Message
,
108
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
125
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
154
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
MuxLogger.cs (1)
863
new BuildStartedEventArgs(_buildStartedEvent.
Message
,
TaskLoggingHelper.cs (2)
320
ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.
Message
);
618
ErrorUtilities.ThrowInvalidOperation("LoggingBeforeTaskInitialization", e.
Message
);
Microsoft.Build.Utilities.UnitTests (12)
MockEngine.cs (4)
60
Console.WriteLine(eventArgs.
Message
);
61
_log.AppendLine(eventArgs.
Message
);
69
Console.WriteLine(eventArgs.
Message
);
70
_log.AppendLine(eventArgs.
Message
);
TrackedDependencies\MockEngine.cs (8)
51
Console.WriteLine(eventArgs.
Message
);
52
Log += eventArgs.
Message
;
67
Console.WriteLine(eventArgs.
Message
);
68
Log += eventArgs.
Message
;
74
Console.WriteLine(eventArgs.
Message
);
75
Log += eventArgs.
Message
;
81
Console.WriteLine(eventArgs.
Message
);
82
Log += eventArgs.
Message
;
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)
195
LogErrorOrWarning(isError: true, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.
Message
, e.BuildEventContext);
198
LogErrorOrWarning(isError: false, e.File, e.LineNumber, e.ColumnNumber, e.Code, e.
Message
, e.BuildEventContext);
Microsoft.DotNet.Build.Tasks.Feed.Tests (21)
BuildModelFactoryTests.cs (3)
238
_buildEngine.BuildErrorEvents.Should().Contain(e => e.
Message
.Equals($"Missing 'RelativeBlobPath' property on blob {zipArtifact}"));
263
_buildEngine.BuildErrorEvents.Should().Contain(e => e.
Message
.Equals("Missing 'location' property from ManifestBuildData"));
724
_buildEngine.BuildErrorEvents.Should().Contain(e => e.
Message
.Equals($"Item to sign '{bogusNupkgToSign}' was not found in the artifacts"));
PublishToSymbolServerTest.cs (18)
122
Assert.Contains(buildEngine.BuildMessageEvents, x => x.
Message
.StartsWith("No assets to publish"));
141
Assert.Contains(buildEngine.BuildMessageEvents, x => x.
Message
.StartsWith("No target symbol servers"));
164
Assert.Contains(buildEngine.BuildMessageEvents, x => x.
Message
.StartsWith("Publishing Symbols to Symbol server"));
165
var message = buildEngine.BuildMessageEvents.Single(x => x.
Message
.StartsWith("Publishing Symbols to Symbol server"));
166
Assert.Contains("Symbol package count: 1", message.
Message
);
167
Assert.Contains("Loose symbol file count: 1", message.
Message
);
169
Assert.Contains(buildEngine.BuildMessageEvents, x => x.
Message
.Contains("Creating symbol request"));
170
Assert.Equal(2, buildEngine.BuildMessageEvents.Where(x => x.
Message
.Contains("Adding directory")).Count());
173
Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.
Message
.Contains($"Extracting symbol package")).Count());
174
Assert.Equal(symbolPackages.Keys.Count, buildEngine.BuildMessageEvents.Where(x => x.
Message
.Contains($"Adding package")).Count());
177
Assert.Contains(buildEngine.BuildMessageEvents , x => x.
Message
.Contains("Skipping lib/net8.0/aztoken.dll"));
178
Assert.Contains(buildEngine.BuildMessageEvents, x => x.
Message
.StartsWith("Finished publishing symbols to temporary azdo org"));
179
Assert.Single(buildEngine.BuildMessageEvents, x => x.
Message
.StartsWith("Would register request"));
180
Microsoft.Build.Framework.BuildMessageEventArgs registerLog = buildEngine.BuildMessageEvents.Where(x => x.
Message
.StartsWith("Would register request")).Single();
181
Assert.Contains("project dotnettest", registerLog.
Message
);
182
Assert.Contains("environment PPE", registerLog.
Message
);
183
Assert.Contains("visibility Public", registerLog.
Message
);
184
Assert.Contains("to last 3650 days", registerLog.
Message
);
Microsoft.DotNet.Build.Tasks.Packaging.Tests (4)
TestBuildEngine.cs (4)
38
_log.LogMessage(e.
Message
);
43
_log.LogError(e.
Message
);
48
_log.LogMessage((LogImportance)e.Importance, e.
Message
);
53
_log.LogWarning(e.
Message
);
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (3)
Vsix\FinalizeInsertionVsixFile.cs (3)
60
AssertEx.Equal(new[] { "PackageManifest.Installation element not found in manifest of 'x.vsix'" }, engine.Errors.Select(e => e.
Message
));
84
AssertEx.Equal(new[] { @"PackageManifest.Installation element of the manifest does not have Experimental=""true"": 'x.vsix'" }, engine.Warnings.Select(e => e.
Message
));
118
}, engine.Warnings.Select(e => e.
Message
));
Microsoft.DotNet.Helix.Sdk.Tests (8)
FindDotNetCliPackageTests.cs (8)
65
buildEngineMock.BuildMessageEvents.Should().Contain(x => x.
Message
.Contains("is valid."));
113
buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.
Message
, @"\?sv=[^ ]+"));
115
buildEngineMock.BuildMessageEvents.Should().Contain(x => x.
Message
.Contains("is valid."));
164
buildEngineMock.BuildMessageEvents.Should().Contain(x => x.
Message
.Contains("Response status code does not indicate success: 403 (Forbidden)."));
166
buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.
Message
, @"\?sv=[^ ]+"));
168
buildEngineMock.BuildMessageEvents.Should().NotContain(x => x.
Message
.Contains("is valid."));
218
buildEngineMock.BuildMessageEvents.Should().NotContain(x => Regex.IsMatch(x.
Message
, @"\?sv=[^ ]+"));
220
buildEngineMock.BuildMessageEvents.Should().NotContain(x => x.
Message
.Contains("is valid."));
Microsoft.DotNet.NuGetRepack.Tests (2)
ReplacePackagePartsTests.cs (2)
39
AssertEx.Equal(Array.Empty<string>(), engine.LogErrorEvents.Select(w => w.
Message
));
40
AssertEx.Equal(Array.Empty<string>(), engine.LogWarningEvents.Select(w => $"{w.Code}: {w.
Message
}"));
Microsoft.DotNet.SignTool.Tests (9)
FakeBuildEngine.cs (4)
89
_output.WriteLine(e.
Message
?? string.Empty);
99
_output.WriteLine($"error {e.Code}: {e.
Message
}");
109
_output.WriteLine(e.
Message
?? string.Empty);
119
_output.WriteLine($"warning {e.Code}: {e.
Message
}");
SignToolTests.cs (5)
378
engine.LogErrorEvents.Select(w => w.
Message
).Should().BeEquivalentTo(expectedErrors ?? Array.Empty<string>());
379
engine.LogWarningEvents.Select(w => $"{w.Code}: {w.
Message
}").Should().BeEquivalentTo(expectedWarnings ?? Array.Empty<string>());
1432
fakeBuildEngine.LogErrorEvents.ForEach(a => a.
Message
.Should().EndWithEquivalent(" does not exist." ));
2380
fakeBuildEngine.LogErrorEvents.Should().Contain(e => e.
Message
.Contains("WixToolsPath must be defined to run WiX tooling"));
2396
fakeBuildEngine.LogErrorEvents.Should().Contain(e => e.
Message
.Contains($"WixToolsPath '{totalWixToolDir}' not found."));
Microsoft.Extensions.ApiDescription.Client.Tests (4)
MockBuildEngine.cs (4)
68
_log.AppendLine(eventArgs.
Message
);
74
_log.AppendLine(eventArgs.
Message
);
80
_log.AppendLine(eventArgs.
Message
);
89
_log.AppendLine(eventArgs.
Message
);
MSBuild (17)
EventArgsFormatting.cs (8)
28
return FormatEventMessage("error", e.Subcategory, e.
Message
,
43
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
59
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
75
return FormatEventMessage("error", e.Subcategory, e.
Message
,
92
return FormatEventMessage("error", e.Subcategory, e.
Message
,
108
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
125
return FormatEventMessage("warning", e.Subcategory, e.
Message
,
154
return FormatEventMessage("message", e.Subcategory, nonNullMessage ?? e.
Message
,
TerminalLogger\TerminalLogger.cs (9)
476
RenderImmediateMessage(e.
Message
!);
798
string? message = e.
Message
;
812
ReadOnlyMemory<char> outputPath = e.
Message
.AsMemory().Slice(index + 4);
890
if (e.
Message
!= null && Verbosity > LoggerVerbosity.Quiet)
892
RenderImmediateMessage(e.
Message
);
932
if ((!String.IsNullOrEmpty(e.
Message
) && IsImmediateMessage(e.
Message
!)) ||
1128
message: e.
Message
,
1143
message: e.
Message
,
XmlFileLogger (14)
ObjectModel\Build.cs (3)
92
task.AddParameter(TaskParameter.Create(buildMessageEventArgs.
Message
, messagePrefix));
115
string message = buildMessageEventArgs.
Message
.Substring(prefix.Length);
137
target.AddItemGroup((ItemGroup)TaskParameter.Create(buildMessageEventArgs.
Message
, prefix));
ObjectModel\Project.cs (1)
123
Name = projectStartedEventArgs.
Message
;
XmlFileLogger.cs (10)
63
_build.AddMessage(args, string.Format("Error {0}: {1}", args.Code, args.
Message
));
68
_build.AddMessage(args, string.Format("Warning {0}: {1}", args.Code, args.
Message
));
99
if (messageArgs.
Message
.StartsWith(TaskParameterMessagePrefix))
103
else if (messageArgs.
Message
.StartsWith(OutputItemsMessagePrefix))
107
else if (messageArgs.
Message
.StartsWith(OutputPropertyMessagePrefix))
113
else if (messageArgs.
Message
.StartsWith(PropertyGroupMessagePrefix))
117
else if (messageArgs.
Message
.StartsWith(ItemGroupIncludeMessagePrefix))
121
else if (messageArgs.
Message
.StartsWith(ItemGroupRemoveMessagePrefix))
136
var match = Regex.Match(messageArgs.
Message
, taskAssemblyPattern);
144
_build.AddMessage(messageArgs, messageArgs.
Message
);