21 writes to RawMessage
Microsoft.Build.Engine.UnitTests (1)
BackEnd\CustomBuildEventTask.cs (1)
16MyCustomBuildEventArgs customBuildEvent = new() { RawMessage = "A message from MyCustomBuildEventArgs" };
Microsoft.Build.Framework (20)
AssemblyLoadBuildEventArgs.cs (1)
86RawMessage = FormatResourceStringIgnoreCodeAndKeyword(resourceName, LoadingContext.ToString(), loadingInitiator, AssemblyName, AssemblyPath, MVID.ToString(), AppDomainDescriptor ?? DefaultAppDomainDescriptor);
BuildCheck\BuildCheckEventArgs.cs (7)
177RawMessage = result.FormatMessage(); 192RawMessage = reader.ReadString(); 200=> RawMessage = result.FormatMessage(); 215RawMessage = reader.ReadString(); 223=> RawMessage = result.FormatMessage(); 225internal BuildCheckResultMessage(string formattedMessage) => RawMessage = formattedMessage; 240RawMessage = reader.ReadString();
ProjectFinishedEventArgs.cs (1)
115RawMessage = FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "ProjectFinishedSuccess" : "ProjectFinishedFailure", Path.GetFileName(ProjectFile));
ProjectStartedEventArgs.cs (2)
550RawMessage = FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithTargetNames", projectFilePath, TargetNames!); 554RawMessage = FormatResourceStringIgnoreCodeAndKeyword("ProjectStartedPrefixForTopLevelProjectWithDefaultTargets", projectFilePath);
PropertyReassignmentEventArgs.cs (1)
78RawMessage = FormatResourceStringIgnoreCodeAndKeyword("PropertyReassignment", PropertyName, NewValue, PreviousValue, Location);
TargetFinishedEventArgs.cs (1)
182RawMessage = FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TargetFinishedSuccess" : "TargetFinishedFailure", targetName, Path.GetFileName(projectFile));
TargetSkippedEventArgs.cs (1)
160RawMessage = SkipReason switch
TargetStartedEventArgs.cs (4)
185RawMessage = FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectDepends", targetName, projectFile, parentTarget); 189RawMessage = FormatResourceStringIgnoreCodeAndKeyword("TargetStartedProjectEntry", targetName, projectFile); 196RawMessage = FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectDepends", targetName, targetFile, projectFile, parentTarget); 200RawMessage = FormatResourceStringIgnoreCodeAndKeyword("TargetStartedFileProjectEntry", targetName, targetFile, projectFile);
TaskFinishedEventArgs.cs (1)
145RawMessage = FormatResourceStringIgnoreCodeAndKeyword(Succeeded ? "TaskFinishedSuccess" : "TaskFinishedFailure", TaskName);
TaskStartedEventArgs.cs (1)
199RawMessage = FormatResourceStringIgnoreCodeAndKeyword("TaskStarted", TaskName);
26 references to RawMessage
Microsoft.Build (1)
Logging\BinaryLogger\BuildEventArgsWriter.cs (1)
652WriteDeduplicatedString(e.RawMessage);
Microsoft.Build.Framework (23)
AssemblyLoadBuildEventArgs.cs (2)
78if (RawMessage == null) 89return RawMessage;
BuildCheck\BuildCheckEventArgs.cs (3)
185writer.Write(RawMessage!); 208writer.Write(RawMessage!); 233writer.Write(RawMessage!);
BuildEventArgs.cs (2)
151/// Like <see cref="RawMessage"/> but returns a formatted message string if available. 200WriteToStreamWithExplicitMessage(writer, RawMessage);
ProjectFinishedEventArgs.cs (2)
113if (RawMessage == null) 118return RawMessage;
ProjectStartedEventArgs.cs (2)
541if (RawMessage == null) 558return RawMessage;
PropertyReassignmentEventArgs.cs (2)
76if (RawMessage == null) 81return RawMessage;
TargetFinishedEventArgs.cs (2)
180if (RawMessage == null) 185return RawMessage;
TargetSkippedEventArgs.cs (2)
158if (RawMessage == null) 185return RawMessage;
TargetStartedEventArgs.cs (2)
179if (RawMessage == null) 205return RawMessage;
TaskFinishedEventArgs.cs (2)
143if (RawMessage == null) 148return RawMessage;
TaskStartedEventArgs.cs (2)
197if (RawMessage == null) 202return RawMessage;
Microsoft.Build.Tasks.UnitTests (2)
MSBuildInternalMessage_Tests.cs (2)
54logger.Warnings[0].RawMessage.ShouldBe(expectedBuildMessage); 58logger.Errors[0].RawMessage.ShouldBe(expectedBuildMessage);