Add-In Wizard problem in VS 2005 Beta 2

Hi,

I'm trying to build an Add-in with the VS 2005 Beta 2 wizard. After completing the wizard and pressing F5, I can see the Add-in in the "Tools - Add-in Manager". The Add-in itself, however, is not shown in the Tools menu.
While running in Debug mode, the line :

Command command = commands.AddNamedCommand2(addInInstance,"MyAddin4","MyAddin4","Executes the command for MyAddin4",true, 59,ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled, (int)vsCommandStyle.vsCommandStylePictAndText,vsCommandControlType.vsCommandControlTypeButton);

which is generated by the Add-in Wizard, seems to be wrong. There is an exception thrown which states that the command name "MyAddin4" allready exists (second argument in the line). After changing this name and pressing F5, there is no more exception. The Add-in, however, is still not shown in the Tools menu.
Am I doing something wrong ?

Thanks,
Bart

[1766 byte] By [BartDeBoeck] at [2007-12-16]
# 1
Hi,
Did anyone have success with the Visual Studio Beta 2 Add-In Wizard ? All feedback is highly appreciated.

Regards,
Bart

BartDeBoeck at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 2
Hai.....,
May be u can try the following method to resolve your problem. I have been very much successful by following this technique

1. Right Click the Setup project generated by Visual Studio and Click build
2. If your build is successful, again Right Click the Setup Project and now choose Install
3. Now when the Install succedds, go to the Start -> Programs -> Microsoft Visual Studio 2005 Beta 2 -> Visual Studio Tools -> Visual Studio 2005 Command Prompt
5. Type devenv /setup
6. Now go to your Add-In program and then continue to DEBUG (F5)

Hope this helps

HemantKumar at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 3
Hi Hemant,

In my case, the Add-In wizard does not generate a Setup project automatically. So, I add one (Setup Wizard project). After compiling and installing the setup, devenv /setup failes (error report was sent to Microsoft).
Out of luck today ;-)

Thanks for the feedback,
Bart

BartDeBoeck at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 4
Does anyone have another set of tips ? For instance, developing in VS 2003 and porting Big Smile

Thanks,
Bart

BartDeBoeck at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 5

Hi,

No response from this group ... should this be reported as a bug ?

Thanks,
Bart

BartDeBoeck at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 6

We've successfully ported a large add-in project (40,000 lines of ATL/WTL 7.5) from VS2003 to VS2005 with very few changes, so starting with a skeleton VS2003 project is indeed a viable proposition.

Cheers,

Anna-Jayne Metcalfe
Riverblade Limited

anna-jayne at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...
# 7
I tried the following steps on a Beta2 build but was not able to repro your issue. I was successful in doing what you are doing. I created an Addin with a Tools Menu item and then hit F5 to debug it. I was able to see the menu item correctly.
ChetanC at 2007-9-9 > top of Msdn Tech,Visual Studio,Visual Studio Extensibility...

Visual Studio

Site Classified