Skip to content

Conversation

@filzrev
Copy link
Contributor

@filzrev filzrev commented May 28, 2025

This PR intended to fix issue #10682
By adding logic to skip non-managed assembly (that returns false for PEReader::HasMetadata)

PEReader instance creation is relatively heavy operation. (It takes 100ms-500ms)
So created PEReader instance is passed as argument. and reused for subsequent processing.

Note:
referenced native assembly skip logic is not currently implemented.
Because it's rare use case, directly referencing native-assembly (With <Reference> tan and HintPath`)

https://github.com/filzrev/docfx/blob/39c67026fd56cd53c0582740d7a912507dff62ca/src/Docfx.Dotnet/CompilationHelper.cs#L212-L216

@filzrev filzrev force-pushed the fix-issue-10682 branch from 39c6702 to f803a1d Compare May 28, 2025 10:13
Copy link
Contributor

@yufeih yufeih left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @filzrev

@yufeih yufeih added the bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note label May 29, 2025
@yufeih yufeih merged commit b5aa6ad into dotnet:main May 29, 2025
9 checks passed
This was referenced Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants