Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PublicApiContractTest fails to output public API information for some assemblies #10238

Open
filzrev opened this issue Sep 28, 2024 · 0 comments
Labels
bug A bug to fix

Comments

@filzrev
Copy link
Contributor

filzrev commented Sep 28, 2024

Describe the bug
PublicApiContractTest.cs generate Api.verified.cs file that describe public API metadata.

But it seems some assembly's public APIs information are not exposed.

List of assemblies that is not outputted API metadata`

  • Docfx.Build.RestApi
  • Docfx.Build.TagLevelRestApi
  • Docfx.Build.UniversalReference
  • Docfx.DataContracts.RestApi
  • Docfx.DataContracts.UniversalReference
  • Docfx.DataContracts.OperationLevelRestApi

It seems assembly reference is removed when type is not actually used inside dlls.
So It's required to load these assemblies manually before calling GetReferencedAssemblies.

Expected behavior
All public API contracts are outputted

Additional context
Add any other context about the problem here.

@filzrev filzrev added the bug A bug to fix label Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix
Projects
None yet
Development

No branches or pull requests

1 participant