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

DocFX extract metadata exception #260

Closed
tungnt185 opened this issue Apr 13, 2016 · 3 comments
Closed

DocFX extract metadata exception #260

tungnt185 opened this issue Apr 13, 2016 · 3 comments
Assignees
Labels
bug A bug to fix

Comments

@tungnt185
Copy link

Hi all,

I'm using Docfx with a solution have many project but some project cannot generate metadata.
Detail error: "Extract metadata exception: error extracting metadata for ... System InvalidOperationException: Unexpected membertype...Add reference symbol..."

I don't have any clue to solve this, please help me.

Thanks.
Tung

@tungnt185 tungnt185 changed the title DocFX DocFX extract metadata exception Apr 13, 2016
@vicancy
Copy link
Contributor

vicancy commented Apr 13, 2016

Anywhere for us to take a look at the project that repros the issue?

@tungnt185
Copy link
Author

Hi @vicancy

At the moment I can't extract my project to create a reproduce sample for you because my company security policy.

Do you have any suggestion for me to overcome this?

Regards
Tung

@tungnt185
Copy link
Author

Hi @vicancy,

After debug with code, I've realized error from VisitorHelper.GetMemberTypeFromTypeKind
We have VB.NET project and have many Module but this function doesn't have Module in Select Case so we have exception.

I've edit to include Module in case Class and have successed. I don't know it has any side effect with the rest of code but it work for me now.
switch (typeKind) { case TypeKind.Class: case TypeKind.Module: return MemberType.Class;

Hope it help someone.

Thanks and best regards.
Tung

@vicancy vicancy added the bug A bug to fix label Apr 14, 2016
@vwxyzh vwxyzh self-assigned this Apr 15, 2016
vwxyzh added a commit that referenced this issue Apr 15, 2016
@vwxyzh vwxyzh closed this as completed Apr 15, 2016
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

3 participants