feat: Surface generated OpenAPI document paths via MSBuild Message#66084
Open
selcukgural wants to merge 4 commits intodotnet:mainfrom
Open
feat: Surface generated OpenAPI document paths via MSBuild Message#66084selcukgural wants to merge 4 commits intodotnet:mainfrom
selcukgural wants to merge 4 commits intodotnet:mainfrom
Conversation
Previously, the GetDocument tool's output was only available via <Exec> stdout, which Terminal Logger suppresses at default verbosity. After the exec completes, read the generated document paths from the cache file and emit them as a high-importance MSBuild <Message>. This surfaces the output through MSBuild's message infrastructure, making it visible to all loggers that respect MessageImportance.High. Visibility in Terminal Logger at default verbosity depends on dotnet/msbuild#10416 being resolved. Fixes dotnet#62273
Contributor
|
Thanks for your PR, @@selcukgural. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves build-time visibility for OpenAPI document generation by emitting the generated OpenAPI document file paths via Message Importance="high" (instead of relying on <Exec> stdout, which can be suppressed by the default .NET Terminal Logger).
Changes:
- After
dotnet-getdocumentruns, read the generated document paths from the cache file. - Emit each generated document path using high-importance MSBuild messages so it shows up across MSBuild loggers (including Terminal Logger).
This was referenced Apr 2, 2026
Open
This was referenced Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem: GenerateOpenApiDocuments target output is suppressed by Terminal Logger (introduced in .NET 8) because it relies on stdout.
Fix: After the exec completes, read generated document paths from the cache file and surface them via so all loggers can surface the output.
Note: Full visibility at default Terminal Logger verbosity depends on dotnet/msbuild#10416.
Fixes #62273