guide for creating addins for Visual Studio 2010?

Posted by JMarsch on Stack Overflow See other posts from Stack Overflow or by JMarsch
Published on 2010-05-27T21:18:34Z Indexed on 2010/05/27 21:21 UTC
Read the original article Hit count: 203

Filed under:
|

Hello:

2 questions actuall:

  1. Is there a good comprensive guide out there for creating add-ins for Visual Studio?

  2. Here's a weird specific problem -- I'm trying to get my add-in to load. The code that the wizard stubs into the OnConnect method will add it to the toolbar, but only if it passes this "if" statement:

    if (connectMode == ext_ConnectMode.ext_cm_UISetup)

The problem is that connectMode never seems to equal ext_cm_UISetup. It always seems to equal ext_cm_AfterStartup, and My AddIn never appears on the toolbar.

I could cheat and short-circuit the if, but since Visual Studio put that code there, I bet it's right, and I have something else wrong.

According to the docs, the value should only ever be ext_cm_UISetup once -- the first time VS encounters the addin. So I probably need to somehow make VS forget about the add-in, but I can't find anywhere to do that. And by the way, isn't that exceptionally delicate? The reason I'm in this pickle is because I happened to get an exception on the first try, so now I can never try again?? Can't be right.

© Stack Overflow or respective owner

Related posts about c#

Related posts about visual-studio