MZ-Tools articles series: HOWTO: Removing commands and UI elements during Visual Studio .NET add-in uninstallation (updated)

March 28, 2008

I have updated a quite old but useful article (Feb 2005) to document the new /ResetAddin command-line flag of Visual Studio 2005/2008 and how to do it correctly: HOWTO: Removing commands and UI elements during Visual Studio .NET add-in uninstallation http://www.mztools.com/articles/2005/MZ2005002.aspx It is important to note that the /ResetAddin command-line flag will remove permanent controls but not […]


devenv.exe /SafeMode and add-ins in Visual Studio 2005 / 2008

March 28, 2008

Just a curious difference in behavior between Visual Studio 2005 and Visual Studio 2008 that the MSDN documentation doesn’t cover very well: According to the MSDN documentation of VS 2005, “This switch prevents all third-party VSPackages from loading when Visual Studio starts, thus ensuring stable execution.” One would expect that if third-party VSPackages are not loaded, add-ins would […]


Unknown error (error number 80131522) loading add-ins

March 26, 2008

I am writing an article about creating setups for Visual Studio add-ins and testing I have found that if the namespace/class specified in the <FullClassName> tag of the .AddIn XML file does not match the actual namespace and connect class name in the source code, you get an obscure <Unknown error> (error number 80131522) loading […]


MZ-Tools Articles Series: HOWTO: Get the text editor font and colors information in a Visual Studio add-in

March 19, 2008

Although I wrote long time ago an article about EnvDTE.DTE.Properties, it was not until this week that I needed to retrieve font and color information of the text editor of Visual Studio. Basically I am changing the code template editor of my MZ-Tools add-in from black and white to colorized text using a RichTextBox, resembling as much […]


MZ-Tools Articles Series: PRB: CodeModelEvents not firing events in a Visual Studio add-in

March 13, 2008

This is a really tricky one that I found in the forums months ago and I have documented it today: PRB: CodeModelEvents not firing events in a Visual Studio add-in http://www.mztools.com/Articles/2008/MZ2008007.aspx


New blog posts to learn VS SDK packages

March 11, 2008

I added yesterday a new resource to the “Resources about Visual Studio extensibility” section of my web site that may be interesting for those of you starting with VS SDK packages: http://dotneteers.net/blogs/divedeeper/archive/2008/01/02/LearnVSXNowPart1.aspx


New book on Visual Studio extensibility

March 11, 2008

As you may have noticed, there aren’t many books on Visual Studio Extensibility, so any new book is great news. This is the case of a new book with the title “Professional Visual Studio Extensibility” by Keyvan Nayyeri: http://nayyeri.net/blog/professional%2Dvisual%2Dstudio%2Dextensibility%2Dfinally%2Dreleased/ It is already available from Wiley and Wrox (where you can read the TOC, index, and first chapter) and […]


How do I get a System.Type from a type name?

March 6, 2008

This is another question that appears from time to time in the forums, and it is one extremely complicated to have a 100% satisfaction with the result :-). I haven’t written a MZ-Tools Series article for this since I don’t have a comprehensive answer with a sample code, but I will ellaborate a bit about […]


MZ-Tools Articles Series: HOWTO: Add an event handler from a Visual Studio add-in

March 5, 2008

Someone asked today something related to this in the MSDN forum and since I remembered being there and that the solution was not very intuitive, I wrote this article: HOWTO: Add an event handler from a Visual Studio add-in http://www.mztools.com/articles/2008/MZ2008006.aspx


TechDays 2008

March 1, 2008

This week I attended the TechDays 2008 here at Madrid, a two-days event to launch Visual Studio 2008, Windows Server 2008 and SQL Server 2008 (this product actually is not released yet but…). I don’t know if it was that Microsoft Iberica (the subsidiary for Spain and Portugal) celebrated its 20 anniversary or that the […]