guide for creating addins for Visual Studio 2010?
- by JMarsch
Hello:
2 questions actuall:
Is there a good comprensive guide out there for creating add-ins for Visual Studio?
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.