23 writes to RawMessage
Microsoft.Build.Engine.UnitTests (1)
BackEnd\CustomBuildEventTask.cs (1)
16
MyCustomBuildEventArgs customBuildEvent = new() {
RawMessage
= "A message from MyCustomBuildEventArgs" };
Microsoft.Build.Framework (22)
AssemblyLoadBuildEventArgs.cs (1)
86
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
BuildCheck\BuildCheckEventArgs.cs (7)
164
RawMessage
= result.FormatMessage();
179
RawMessage
= reader.ReadString();
187
=>
RawMessage
= result.FormatMessage();
202
RawMessage
= reader.ReadString();
210
=>
RawMessage
= result.FormatMessage();
212
internal BuildCheckResultMessage(string formattedMessage) =>
RawMessage
= formattedMessage;
227
RawMessage
= reader.ReadString();
ProjectFinishedEventArgs.cs (1)
115
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "ProjectFinishedSuccess" : "ProjectFinishedFailure", Path.GetFileName(ProjectFile));
ProjectStartedEventArgs.cs (2)
550
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithTargetNames", projectFilePath, TargetNames!);
554
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", projectFilePath);
PropertyInitialValueSetEventArgs.cs (1)
101
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("PropertyAssignment", PropertyName, PropertyValue, formattedLocation);
PropertyReassignmentEventArgs.cs (1)
114
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("PropertyReassignment", PropertyName, NewValue, PreviousValue, formattedLocation);
TargetFinishedEventArgs.cs (1)
182
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TargetFinishedSuccess" : "TargetFinishedFailure", targetName, Path.GetFileName(projectFile));
TargetSkippedEventArgs.cs (1)
161
RawMessage
= SkipReason switch
TargetStartedEventArgs.cs (4)
185
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectDepends", targetName, projectFile, parentTarget);
189
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectEntry", targetName, projectFile);
196
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectDepends", targetName, targetFile, projectFile, parentTarget);
200
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectEntry", targetName, targetFile, projectFile);
TaskFinishedEventArgs.cs (1)
145
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TaskFinishedSuccess" : "TaskFinishedFailure", TaskName);
TaskStartedEventArgs.cs (1)
199
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TaskStarted", TaskName);
UninitializedPropertyReadEventArgs.cs (1)
68
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("UninitializedPropertyRead", PropertyName);
39 references to RawMessage
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
654
WriteDeduplicatedString(e.
RawMessage
);
Microsoft.Build.Framework (27)
AssemblyLoadBuildEventArgs.cs (2)
78
if (
RawMessage
== null)
89
return
RawMessage
;
BuildCheck\BuildCheckEventArgs.cs (3)
172
writer.Write(
RawMessage
!);
195
writer.Write(
RawMessage
!);
220
writer.Write(
RawMessage
!);
BuildEventArgs.cs (2)
151
/// Like <see cref="
RawMessage
"/> but returns a formatted message string if available.
200
WriteToStreamWithExplicitMessage(writer,
RawMessage
);
ProjectFinishedEventArgs.cs (2)
113
if (
RawMessage
== null)
118
return
RawMessage
;
ProjectStartedEventArgs.cs (2)
541
if (
RawMessage
== null)
558
return
RawMessage
;
PropertyInitialValueSetEventArgs.cs (2)
98
if (
RawMessage
== null)
104
return
RawMessage
;
PropertyReassignmentEventArgs.cs (2)
111
if (
RawMessage
== null)
117
return
RawMessage
;
TargetFinishedEventArgs.cs (2)
180
if (
RawMessage
== null)
185
return
RawMessage
;
TargetSkippedEventArgs.cs (2)
159
if (
RawMessage
== null)
186
return
RawMessage
;
TargetStartedEventArgs.cs (2)
179
if (
RawMessage
== null)
205
return
RawMessage
;
TaskFinishedEventArgs.cs (2)
143
if (
RawMessage
== null)
148
return
RawMessage
;
TaskStartedEventArgs.cs (2)
197
if (
RawMessage
== null)
202
return
RawMessage
;
UninitializedPropertyReadEventArgs.cs (2)
66
if (
RawMessage
== null)
71
return
RawMessage
;
Microsoft.Build.Tasks.UnitTests (11)
MSBuildInternalMessage_Tests.cs (11)
55
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
59
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
97
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
101
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
159
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
166
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
170
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
175
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
228
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
232
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
288
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);