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
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
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
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