This documentation is archived and is not being maintained.
Message Task
Visual Studio 2008
Logs a message during a build.
The Message task allows MSBuild projects to issue messages to loggers at different steps in the build process.
If the Condition parameter evaluates to true, the value of the Text parameter will be logged and the build will continue to execute. If a Condition parameter does not exist, the message text is logged. For more information on logging, see Overview of Logging in MSBuild.
The following code example logs messages to all registered loggers.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="DisplayMessages">
<Message Text="Project File Name = $(MSBuildProjectFile)" />
<Message Text="Project Extension = $(MSBuildProjectExtension)" />
</Target>
...
</Project>
Show: