Skip to content

terminal logger prevents output messages #43293

Open
@zivkan

Description

@zivkan

Describe the bug

The .NET 9 SDK appears to default to a "terminal logger". For normal builds I can see why some people would prefer this. However, it's preventing my custom target's output messages from being displayed at all.

To Reproduce

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net9.0</TargetFramework>
  </PropertyGroup>
  <Target Name="doTest">
    <Message
      Text="Test"
      Importance="High" />
  </Target>
</Project>

then run dotnet msbuild -t:doTest

Exceptions (if any)

No exception, but my Test message isn't displayed. I have to run dotnet msbuild -t:doTest -clp:off to see the message.

Further technical details

dotnet 9 SDK

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions