dotnet / dotnet/docfx

Error extracting metadata for project : An item with the same key has already been added

Open
#2,532 17 comments 3 reactions 0 assignees View on GitHub
dotnet
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

**DocFX Version Used**: 2.33

**Template used**: `default`

**Steps to Reproduce**:

Paths have been anonymized to protect the innocent.

1. Execute `docfx metadata C:\Users\someuser\Code\SomeProject\Module\SomeLibrary.Shared\SomeLibrary.Shared.vbproj -f`

**Expected Behavior**:
Successfully generates metadata

**Actual Behavior**:
Metadata generation fails with the following error:
```
[18-03-19 07:58:56.263]Info:[ExtractMetadata]Generating metadata for each project...
[18-03-19 07:59:04.842]Error:Error extracting metadata for C:\Users\someuser\Code\SomeProject\Module\SomeLibrary.Shared\SomeLibrary.Shared.vbproj: Error extracting metadata for project "C:\Users\someuser\Code\SomeProject\Module\SomeLibrary.Shared\SomeLibrary.Shared.vbproj": An item with the same key has already been added.
```

**Notes:**
This is the first time trying to run docfx on our project. I saw the same error on other VB or C# projects. I tried earlier versions and saw similar/additional errors. I also see the same error when using a solution that contains the projects.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.