Carlos Quintero (Microsoft MVP) blog

Visual Studio Extensibility with Add-ins

Browse by Tags

All Tags » MZ-Tools Articles Series (RSS)
Sorry, but there are no more tags available to filter with.
MZ-Tools Articles Series: BUG: EnvDTE.CodeFunction.Parameters causes COM Exception with C# event add/remove methods in Visual Studio macros or add-ins
And yet another bug in the file code model of C# that happens with events: BUG: EnvDTE.CodeFunction.Parameters causes COM exception with C# event add/remove methods in Visual Studio macros or add-ins: http://www.mztools.com/articles/2009/MZ2009019.aspx...

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: EnvDTE.CodeFunction.Attributes doesn't work with C# property get/set methods in Visual Studio macros or add-ins
Another bug of the file code model for C#: BUG: EnvDTE.CodeFunction.Attributes doesn't work with C# property get/set methods in Visual Studio macros or add-ins http://www.mztools.com/articles/2009/MZ2009018.aspx It happens too in VS 2010 Beta 1, I...

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: C# indexers are not mapped to EnvDTE80.CodeProperty2 in Visual Studio macros or add-ins
Another bug that I have found today: BUG: C# indexers are not mapped to EnvDTE80.CodeProperty2 in Visual Studio macros or add-ins http://www.mztools.com/articles/2009/MZ2009017.aspx It only happens in VS 2005 and VS 2008. Curiously it is alrady fixed...

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: EnvDTE.CodeElement.GetStartPoint(vsCMPart.vsCMPartBody) returns wrong result for VB.NET classes using the Implements or Inherits clauses
This is a bug that I have found twice in the last couple of days: EnvDTE.CodeElement.GetStartPoint(vsCMPart.vsCMPartBody) returns wrong result for VB.NET classes using the Implements or Inherits clauses http://www.mztools.com/articles/2009/MZ2009016.aspx...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Get the output build folder from a Visual Studio add-in or macro
This gets asked from time to time in the forums so I wrote a sample code about it: HOWTO: Get the output build folder from a Visual Studio add-in or macro http://www.mztools.com/articles/2009/MZ2009015.aspx

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: EnvDTE.Project.CodeModel doesn't retrieve attributes in the AssemblyInfo file
If you are trying to retrieve attributes in the assemblyinfo file, it's better to use the ProjectItem.FileCodeModel rather than the Project.CodeModel: BUG: EnvDTE.Project.CodeModel doesn't retrieve attributes in the AssemblyInfo file http://www...

Posted by carlosq | with no comments

MZ-Tools Articles Series: PRB: PEVerify.exe causes problem verifying add-in with referenced assemblies from Visual Studio not in the GAC
I am currently working on a new version of MZ-Tools and yesterday I updated its build script. When running it, to my surprise, I found the following error in the step that verifies the assembly with the peverify.exe tool after the obfuscation step: Error...

Posted by carlosq | 1 comment(s)

MZ-Tools Articles Series: updated articles
I have updated the following MZ-Tools Series articles to fix/explain better some things, provide C# code some cases, cover Windows Vista folders, cover Visual Studio 2008/2010 in some other cases, etc: HOWTO: Removing commands and UI elements during Visual...

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: Infinite recursion in add-in causes Visual Studio crash
This bug that I commented in a previous blog entry and that I reported to Micorosoft through Microsoft Connect is not going to be fixed in the next version VS 2010: Add-in causing stack overflow causes "Microsoft Visual Studio has encountered a problem...

Posted by carlosq | with no comments

MZ-Tools Articles Series: INFO: Testing a Visual Studio add-in against new Visual Studio tools or extensions from Microsoft
When you create your Visual Studio extension, whether an add-in or package, likely you test it most of the time against project types provided by Visual Studio out of the box, such as VB.NET/C# projects, smartdevice projects, database projects, etc. Long...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Prevent dead CommandBarButtons when Visual Studio or an add-in crashes
This is another problem that was bugging me for quite some time: if an add-in uses a temporary user-interface rather than a permanent one when adding buttons to a built-in toolbar of Visual Studio, the add-in must remove the buttons when unloaded, typically...

Posted by carlosq | with no comments

MZ-Tools Articles Series (update) HOWTO: Automating Visual Studio .NET from outside the IDE
I am these days trying to create a single .NET application that can automate all the Visual Studio versions installed on a machine (from Visual Studio .NET 2002 to Visual Studio 2010). For that purpose I have created a .NET application using Visual Studio...

Posted by carlosq | with no comments

MZ-Tools Articles Series: BUG: Standard user unable to load/unload COM-based add-ins registered for all users with the VS 2008 Add-in Manager on Windows Vista
Almost a couple years ago I wrote an article The Add-In Manager of Visual Studio 2005 got broken...and won't be fixed for SP1 and while Visual Studio 2008 fixed that problem, it has introduced a new one when running on Windows Vista, and guess what...

Posted by carlosq | 1 comment(s)

MZ-Tools Articles Series: HOWTO: Using the Process Monitor (ProcMon) tool to diagnose Visual Studio add-ins problems
Last year I wrote a quite popular article HOWTO: Troubleshooting Visual Studio and Office add-ins , to diagnose many common problems with add-ins for Visual Studio or even Office. One invaluable tool to diagnose a whole range of problems with an add-in...

Posted by carlosq | with no comments

MZ-Tools Articles Series (update) INFO: Default .AddIn file locations for Visual Studio add-ins
I have updated the article that I wrote back in January about default folders to place .AddIn registration files for add-ins to include actual examples for Windows Vista since the original article only showed Windows XP examples. I have also provided...

Posted by carlosq | 3 comment(s)

MZ-Tools Articles Series: HOWTO: Add an error with navigation to the Error List from a Visual Studio add-in
It is conspicuous that the EnvDTE80.ErrorItems collection introduced by VS 2005 lacks an Add method to add errors to the ErrorList, so it was a common belief, apparently even within Microsoft and also mine until recently that only SDK packages can add...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Get an OutputWindowPane to output some string from a Visual Studio add-in or macro
To deal with international versions of Visual Studio and other Microsoft products (such as Office) has always been tricky. I think to remember that many years ago some version of Excel went as far as localizing the VBA statements (or macro language before...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Retrieve the Command that created a CommandBarControl from a Visual Studio add-in or macro
The question "How do I retrieve a Command from a CommandBarControl?" has been posted in the forums at least a couple of times and my answer always was "It's not possible" because the CommandBarControl lacks a Command property,...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Get Microsoft Office bitmaps for Visual Studio add-ins
I have been struggling during the last weeks to get 32x32 icons from Office 2007 and yesterday I found the 2007 Office System Add-In: Icons Gallery . Also, a question that appears from time to time in the forums is how to get the numerical indexes of...

Posted by carlosq | with no comments

MZ-Tools Articles Series: HOWTO: Handling buttons and toolbars user customizations from a Visual Studio add-in
Visual Studio allows a rich customization of its user interface and, alas, it can affect your add-in. This new article of mine examines some common customization scenarios and how your add-in can handle them more or less gracefully: HOWTO: Handling buttons...

Posted by carlosq | 1 comment(s)

More Posts Next page »