dotnet/aspnetcore

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

Chiusa

#62.273 aperta il 7 giu 2025

 (3 commenti) (0 reazioni) (0 assegnatari)C# (10.653 fork)batch import
area-commandlinetoolsfeature-openapigood first issuehelp wanted

Metriche repository

Star
 (37.933 stelle)
Metriche merge PR
 (Merge medio 16g 9h) (258 PR mergiate in 30 g)

Descrizione

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: https://github.com/dotnet/msbuild/pull/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

Guida contributor