locked
Issue with VSIX project RRS feed

  • Question

  • I am trying to create a VSIX package for my Metro control dll.  It is working if I create a separate VSIX project outside my Visual Studio solution. But when I am adding a new VSIX project into my existing solution, it is throwing an error "An Item with the same key has already been added" while opening vsixmanifest file. My solution is already containing a Metro class library project and an application project. Can anybody assist?
    Wednesday, August 29, 2012 8:12 AM

All replies

  • Hi JordanSmith,

    I can't reproduce your issue.

    You said:


     But when I am adding a new VSIX project into my existing solution, it is throwing an error

    When did error message occur, after creating a VSIX project or adding your dlls into vsixmanifest?

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Friday, August 31, 2012 3:01 AM
  • Error message is appearing when I am opening vsixmanifest file. It works well when I create the VSIX project outside my solution. But when I am adding the project into my existing solution which already has Silverlight, WPF and Metro projects it is throwing an error while opening vsixmanifest file.
    Friday, August 31, 2012 3:51 AM
  • I found the cause of this error. Actually I have a solution containing two different solutions. Each solution is having projects for Silverlight, WPF and Metro. Each project has shared files in each solution. Now when I am adding a VSIX project in the solution it is throwing the error. But when I remove one solution from my parent solution, then it works well. Can anybody please tell me why this is happening?
    Friday, August 31, 2012 4:05 AM
  • I think these two projects shared the same assembly which be add twice in vsix project. So it will report the error like:An Item with the same key has already been added.

    Just create one vsix project each solution.

    Monday, September 3, 2012 1:20 PM
  • Could you clarify your answer, please. I have a similar issue, thus I would like some explanations:

    1) You wrote "I have a solution containing two different solutions." What do you mean? Precisely, in VS solution cannot contain another solutions. Solution can contains projects.|

    2) You wrote "when I remove one solution from my parent solution"?. Like above, what do you mean?
    Tuesday, October 8, 2013 11:31 AM
  • I am facing same issue.

    I am using multi-Project Vsix Template.

    While I am adding multiple projects using same vsix template. 

    Steps:

    1. Added New Project using Vsix project template. It created 2 projects successfully .

    2. Again adding new project using same template. when I enter project name and click OK. It gave me error "An item with the same key has already been added." 

    I don't how to trace this error, why this is occuring?

    Please Help..

    Best Regards.

    Monday, January 11, 2016 8:12 AM
  • Feel free to start a new thread and include the details of your project instead of appending your problem to someone else's 4 year old post/thread. It might get more attention that way :-).

    I seem to recall having issues like this when I was building the VSX Template Wizard.

    Sincerely,


    Ed Dore

    Wednesday, January 20, 2016 4:48 AM
  • Hi,

    just a guess, but take a look at the project/solution files. Maybe there is some kind of conflict with GUIDs. Maybe you have some kind of copy/past error and are using the same GUID in different projects. Or maybe there are some artifacts left over in your solution file which still contain some old GUID?

    Regards,
    Max

    Monday, February 1, 2016 12:57 PM