Skip to content

Microsoft.Extensions.ApiDescription.Server - Surface Invocation with new TerminalLogger #62273

Open
@MattParkerDev

Description

@MattParkerDev

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

running a dotnet build on an ASP.NET Core project, does not indicate when Microsoft.Extensions.ApiDescription.Server runs the GetDocument tool. This is due to dotnet's new Terminal Logger, introduced in .NET 8.

Building with the new Terminal Logger disabled dotnet build --tl:off does show the logs from the tool invocation, including Generating document named 'v1'.

However, building with a Terminal Logger Verbosity flag set to detailed dotnet build -tlp:v=d does show the GetDocument logs.

Someone who is unaware these logs exist, will never be able to find them.
This can be an issue when debugging document generation.

Describe the solution you'd like

Surface these logs when using the new Terminal Logger, which is the default logger. This could be dependent on:

or may be resolved via: dotnet/msbuild#9810, by making the message higher priority, which may appear at lower log verbosity levels.

alternatively, -tlp:v=d may be an acceptable solution, and we could instead inform users about it in the README of the the NuGet package.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-commandlinetoolsIncludes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPIfeature-openapi

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions