Skip to content

Conversation

@captainsafia
Copy link
Member

@captainsafia captainsafia commented Jan 27, 2025

Closes #60026.

In the previous PR, I removed the netcoreapp2.0 target based on TFM instruction and removed the packaging of it in the top-level. I didn't realize that the MSBuild targets associated with this package were still being used by the GetDocument tool.

I'm packaging the net10-targeted build for this tool in the top-level nuspec file to ensure that the dotnet-getdocument.dll file is available in the tools directory. I think the net10 target is the correct one to use here since the TFM and package version are associated.

It would be good to squeeze this in before the 10-preview1 cut-off later today.

@ghost ghost added the area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI label Jan 27, 2025
@captainsafia captainsafia merged commit 133f9c5 into main Jan 27, 2025
27 checks passed
@captainsafia captainsafia deleted the safia/fix-openapi-test branch January 27, 2025 20:29
@dotnet-policy-service dotnet-policy-service bot added this to the 10.0-preview1 milestone Jan 27, 2025
@eerhardt
Copy link
Member

Are we missing a test here?

@captainsafia
Copy link
Member Author

Are we missing a test here?

Yes, we are. That's why the original issue slipped through.

This document generation infrastructure is split up into an inner executable and a set of MSBuild targets that invoke that executable. We test the former, but not the later. I think the primarily reason for this is our SDK-based testing infrastructure in the repo is pretty weak.

This is something that will hopefully improve with #58353.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-commandlinetools Includes: Command line tools, dotnet-dev-certs, dotnet-user-jwts, and OpenAPI feature-openapi

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenApi document generation is broken

4 participants