locked
Visual Studio addin problem RRS feed

  • Question

  •  Hello,

    It's my first Visual Studio plugin, and currently when I debug the project the addin isn't showing up, and I need to manually put it in my addin folder, what's wrong ? :)


    Eyal, Regards.

    blog.eyalsh.net

     

    Saturday, August 29, 2009 2:29 PM

Answers

  • Hello,

    When you create an add-in with the add-in wizard, it works "out of the box" so you may have changed something. The add-in dll can be in some folder and the wizard creates the .AddIn file in other folder pointing to it. There are two .AddIn files, one in the correct location for VS to find the add-in dll, and the other in the same folder than the source code since it is an asset that must be preserved (backup), versioned, etc. like any other source file.

    See:

    Why are there two .Addin files?
    http://blogs.msdn.com/craigskibo/archive/2004/07/30/202562.aspx

    And:

    INFO: Default .AddIn file locations for Visual Studio add-ins
    http://www.mztools.com/Articles/2008/MZ2008001.aspx
    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about VS extensibility: http://msmvps.com/blogs/carlosq/
    Monday, August 31, 2009 8:16 AM

All replies

  • I can probably change the output configuration to my addin folder, but I'm not sure it's the way it should be done, is there a better way ?


    Eyal, Regards.

    blog.eyalsh.net
    Saturday, August 29, 2009 3:10 PM
  • Hi,
      see these web page http://www.code-magazine.com/Article.aspx?quickid=0710082
      and create a simple Add-In step by step like in tutorial.
      After that in directory Visual Studio 2008\Addins You have file yoursAddinName.AddIn.

    Sincerely,

    Mykhaylo



    Sunday, August 30, 2009 12:43 AM
  • Thanks for posting, I can load the addin fine, I have everything set and ready, I had to change the output path to my addins folder, and move the .AddIn file to that folder manually for it to work, I thought there's a way to do that automatically. :)
    Eyal, Regards.

    blog.eyalsh.net
    Sunday, August 30, 2009 1:34 AM
  • Hello,

    When you create an add-in with the add-in wizard, it works "out of the box" so you may have changed something. The add-in dll can be in some folder and the wizard creates the .AddIn file in other folder pointing to it. There are two .AddIn files, one in the correct location for VS to find the add-in dll, and the other in the same folder than the source code since it is an asset that must be preserved (backup), versioned, etc. like any other source file.

    See:

    Why are there two .Addin files?
    http://blogs.msdn.com/craigskibo/archive/2004/07/30/202562.aspx

    And:

    INFO: Default .AddIn file locations for Visual Studio add-ins
    http://www.mztools.com/Articles/2008/MZ2008001.aspx
    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about VS extensibility: http://msmvps.com/blogs/carlosq/
    Monday, August 31, 2009 8:16 AM
  • @Carlos thank you very much for the help! :)
    Eyal, Regards.

    blog.eyalsh.net
    Monday, August 31, 2009 2:50 PM