Workaround for VS 2010 Beta 2 Bug: CommandBarButton.Style not honored, always Icon + Caption

October 26, 2009

Back in VS.NET 2002/2003 the only way to change the style (Icon only, or Icon + Caption) of a CommandBarButton created from a Command was to cast the CommandBarControl returned by Command.AddControl to CommandBarButton and use the CommandBarButton.Style property. If you use that approach in VS 2010 Beta 2 you will find this bug that […]

Yet another critical VS 2010 Beta 2 bug in CommandBars: this one causes VS to hang, nothing less

October 26, 2009

This one happens when an add-in: Creates a temporary toolbar using CommandBars.Add Creates a temporary CommandBarPopup on that toolbar Creates a command and tries to add a CommandBarButton from that command to that CommandBarPopup using Command.Add(CommandBarPopup.CommandBar) The bug report is here: VS 2010 Beta 2 Bug: adding CommandBarButton from Command to CommandbarPopup on Toolbar causes […]

Another critical VS 2010 Beta 2 bug in CommandBars: this one causes VS to evaporate without warning, nothing less

October 25, 2009

After 3 hours isolating this to the minimal expression (which is tedious if your add-in is has lots of user interface items and debugging a VS 2010 add-in on a virtual machine is painfully slow), here it is: VS 2010 Beta 2 Bug: deleting a CommandbarPopup unloading add-in causes VS to disappear (the problem […]

Frustrating new bugs in commandbars of VS 2010 Beta 2

October 24, 2009

I can’t express how disappointed, frustrated (and more things!) I am with VS 2010 Beta 2 regarding correct behavior of commandbars for add-ins. It seems that once a bug is fixed in a VS 2010 build and an add-in can pass that point, new bugs surface that prevent its correct loading (and I have tested […]

VS 2010 RC/RTM fixing " ‘Object must be the same type as the enum’ exception calling CommandBars.Add from an add-in" problem

October 24, 2009

Microsoft has reported that this problem will be fixed: ” ‘Object must be the same type as the enum’ exception calling CommandBars.Add from an add-in” Notice that the “Embed Interop Types” property seems to have been renamed to “Isolated” in VS 2010 Beta 2, in one of those renaming changes that make things more […]

VS 2010 Beta 2 certainly supporting RGB=0,254,0 as background color for command pictures as in previous versions of Visual Studio

October 24, 2009

FWIW, I have verified that VS 2010 Beta 2 certainly fixes the issue of supporting RGB=0,254,0 for transparent color in 24-bit command pictures that I mentioned here. So, if your add-in targets VS 2005, 2008 and 2010 you can use that color for the transparent background color of command pictures and they won’t appear with […]

VS 2010 and the Microsoft.VisualStudio.CommandBars.CommandBarPopup interface

October 23, 2009

This is going to be messy, so step by step: Imagine that you are developing an add-in that uses a temporary user interface (not permanent one), and creates a couple of commandbars of kind “toolbar”, and many commandbars of kind “popup” (with submenus). Since it uses a temporary user interface, it must delete those commandbars […]

VS 2010 Beta 2 commandbar-related bugs with fixes on the way

October 23, 2009

If you are testing your add-in with the recently released VS 2010 Beta 2 chances are that you have noticed that the new WPF-based commandbars, buttons and icons are not yet ready for prime time. It seems that my MZ-Tools add-in uses every possible method, property and technique offered by the Microsoft.VisualStudio.CommandBars API so I […]

Debugging add-ins for VS 2010 (Beta 2) created with VS 2008: The debugger’s protocol is incompatible with the debuggee

October 21, 2009

If you are developing add-ins for in-house use, chances are that you can drive, encourage or even force the whole organization to use the latest version of Visual Studio and therefore your add-in needs to target only that version. But if you are developing add-ins for commercial or open-source purposes, to be used by lots […]

The strange case of VS 2010 (Beta 2 /CTPs) closing at startup or failing to create add-ins

October 20, 2009

As you know if you develop add-ins, Visual Studio 2005 introduced XML-based add-ins that use an .AddIn file that you must place in the proper folder for Visual Studio to show the add-in in the Add-In Manager. Which XML parser Visual Studio uses to parse .AddIn files wouldn’t be of interest if it wasn’t because […]