Add A Namespace Import Via Visual Studio Automation January 20, 2014Munir HusseiniNo Comments Suppose you had a code document represented by a FileCodeModel object. And suppose you were modifying the containing DOM. Sometimes,…
Automatically Loading VSIX Packages December 11, 2013Munir Husseini1 Comment So you’re creating a VSIX package that does not have a menu items, tool windows or command? But still you…
Use T4 Templates For XSLT Transformation September 20, 2013Munir HusseiniNo Comments Suppose you have XSLT style sheets that produce some code from XML files. Now suppose you want to integrate these…
Resolve Visual Studio Macros In VSIX Packages Or T4 Templates September 18, 2013Munir HusseiniNo Comments We all love Visual Studio Macros, right? Pre- and Post-Build actions or MSBuild scripts would get very nasty if there…
Inheriting a T4 Template and Calling EnvDTE.DTE: The System Cannot Find The File Specified September 16, 2013Munir Husseini2 Comments Some strange behavior occurred today when I tried to encapsulate some functionality of a T4 template into a base class.…
Write To Visual Studio’s Output Window June 6, 2013Munir HusseiniNo Comments If you have developed a Visual Studio Extension, you might want to output messages to Visual Studio’s Output window. Here’s…
Modal WPF Windows And The Visual Studio Window June 3, 2013Munir HusseiniNo Comments So I needed to show a modal WPF window from inside a Visual Studio Extension. To do that, I needed…
Tell if an EnvDTE.Project is a Web Application May 31, 2013Munir HusseiniNo Comments A Visual Studio Extension or Add-In might need to know whether or not a project is a web application (in…
Write To Visual Studio’s Error List May 30, 2013Munir Husseini1 Comment When you’re developing an extension for Visual Studio, you might want to add errors, warnings or messages to Visual Studio’s…
Manually Applying XML Document Transform (XDT) May 29, 2013Munir HusseiniNo Comments There might be situations where you might want to execute XDT of a web.config or app.config “manually” (i.e. apply the…