bitshift
bitshift

Reputation: 6852

Display a message in Visual Studio 2019 output window via msbuild target in csproj file?

.NET Core 2.2 Web app, Visual Studio 2019 pro

I added this in my csproj file, but see no message in the output window?

  <Target Name="DisplayMessages">
    <Message Text="Project build config = $(Configuration)" />
  </Target>

Upvotes: 2

Views: 1579

Answers (1)

Daniel A. White
Daniel A. White

Reputation: 191037

You could change your Importance to High or adjust your MSBuild settings to turn up the level, but that could create additional noise.

By default Visual Studio does Miminial logging which only High will get thru.

https://learn.microsoft.com/en-us/visualstudio/msbuild/message-task?view=vs-2019

Upvotes: 2

Related Questions