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

Comments

Projects
None yet
3 participants
@tungnt185

tungnt185 commented Apr 13, 2016

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 from DocFX to DocFX extract metadata exception Apr 13, 2016

@vicancy

This comment has been minimized.

Show comment
Hide comment
@vicancy

vicancy Apr 13, 2016

Contributor

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

Contributor

vicancy commented Apr 13, 2016

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

@tungnt185

This comment has been minimized.

Show comment
Hide comment
@tungnt185

tungnt185 Apr 13, 2016

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 commented Apr 13, 2016

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

This comment has been minimized.

Show comment
Hide comment
@tungnt185

tungnt185 Apr 14, 2016

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

tungnt185 commented Apr 14, 2016

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 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 Apr 15, 2016

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