Skip to content

An item with the same key has already been added

January 19, 2017

I am working on a Visual Studio VSIX-solution. When i tried to open the “source.extension.vsixmanifest” I got the error “An item with the same key has already been added”. After a while (some googling) I realized that I had projects in my solution with the same name. My solution structure:

  • Solution ‘VisualStudio-Templates’ (9 projects)
    • .Global
    • Assemblies
      • Common
        • Common
        • IntegrationTests
        • UnitTests
      • Templating
        • IntegrationTests
        • Templating
        • UnitTests
    • Templates
    • Package

I renamed the test-projects so the structure is this:

  • Solution ‘VisualStudio-Templates’ (9 projects)
    • .Global
    • Assemblies
      • Common
        • Common
        • Common.IntegrationTests
        • Common.UnitTests
      • Templating
        • Templating
        • Templating.IntegrationTests
        • Templating.UnitTests
    • Templates
    • Package

This solved the problem.

Advertisements

From → Visual Studio

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: