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)
85
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
BuildCheck\BuildCheckEventArgs.cs (7)
163
RawMessage
= result.FormatMessage();
178
RawMessage
= reader.ReadString();
186
=>
RawMessage
= result.FormatMessage();
201
RawMessage
= reader.ReadString();
209
=>
RawMessage
= result.FormatMessage();
211
internal BuildCheckResultMessage(string formattedMessage) =>
RawMessage
= formattedMessage;
226
RawMessage
= reader.ReadString();
ProjectFinishedEventArgs.cs (1)
114
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "ProjectFinishedSuccess" : "ProjectFinishedFailure", Path.GetFileName(ProjectFile));
ProjectStartedEventArgs.cs (2)
549
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithTargetNames", projectFilePath, TargetNames!);
553
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", projectFilePath);
PropertyInitialValueSetEventArgs.cs (1)
100
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("PropertyAssignment", PropertyName, PropertyValue, formattedLocation);
PropertyReassignmentEventArgs.cs (1)
113
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("PropertyReassignment", PropertyName, NewValue, PreviousValue, formattedLocation);
TargetFinishedEventArgs.cs (1)
181
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TargetFinishedSuccess" : "TargetFinishedFailure", targetName, Path.GetFileName(projectFile));
TargetSkippedEventArgs.cs (1)
160
RawMessage
= SkipReason switch
TargetStartedEventArgs.cs (4)
184
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectDepends", targetName, projectFile, parentTarget);
188
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectEntry", targetName, projectFile);
195
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectDepends", targetName, targetFile, projectFile, parentTarget);
199
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectEntry", targetName, targetFile, projectFile);
TaskFinishedEventArgs.cs (1)
144
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TaskFinishedSuccess" : "TaskFinishedFailure", TaskName);
TaskStartedEventArgs.cs (1)
198
RawMessage
= FormatResourceStringIgnoreCodeAndKeyword("TaskStarted", TaskName);
UninitializedPropertyReadEventArgs.cs (1)
67
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)
77
if (
RawMessage
== null)
88
return
RawMessage
;
BuildCheck\BuildCheckEventArgs.cs (3)
171
writer.Write(
RawMessage
!);
194
writer.Write(
RawMessage
!);
219
writer.Write(
RawMessage
!);
BuildEventArgs.cs (2)
150
/// Like <see cref="
RawMessage
"/> but returns a formatted message string if available.
199
WriteToStreamWithExplicitMessage(writer,
RawMessage
);
ProjectFinishedEventArgs.cs (2)
112
if (
RawMessage
== null)
117
return
RawMessage
;
ProjectStartedEventArgs.cs (2)
540
if (
RawMessage
== null)
557
return
RawMessage
;
PropertyInitialValueSetEventArgs.cs (2)
97
if (
RawMessage
== null)
103
return
RawMessage
;
PropertyReassignmentEventArgs.cs (2)
110
if (
RawMessage
== null)
116
return
RawMessage
;
TargetFinishedEventArgs.cs (2)
179
if (
RawMessage
== null)
184
return
RawMessage
;
TargetSkippedEventArgs.cs (2)
158
if (
RawMessage
== null)
185
return
RawMessage
;
TargetStartedEventArgs.cs (2)
178
if (
RawMessage
== null)
204
return
RawMessage
;
TaskFinishedEventArgs.cs (2)
142
if (
RawMessage
== null)
147
return
RawMessage
;
TaskStartedEventArgs.cs (2)
196
if (
RawMessage
== null)
201
return
RawMessage
;
UninitializedPropertyReadEventArgs.cs (2)
65
if (
RawMessage
== null)
70
return
RawMessage
;
Microsoft.Build.Tasks.UnitTests (11)
MSBuildInternalMessage_Tests.cs (11)
54
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
58
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
96
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
100
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
158
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
165
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
169
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
174
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
227
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);
231
logger.Errors[0].
RawMessage
.ShouldBe(expectedBuildMessage);
287
logger.Warnings[0].
RawMessage
.ShouldBe(expectedBuildMessage);