Adding Solution Folders Via Visual Studio Automation January 23, 2014Munir HusseiniNo Comments In the Visual Studio Solution Explorer, you can add solution folders to group projects or project items. These solution folders…
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,…
Get The ProjectItem of a T4 Template From Inside the T4 Template June 10, 2013January 8, 2018Munir HusseiniNo Comments So you got a T4 template and need access to the ProjectItem of that T4 template or to the parent…
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…
Get Project References From EnvDTE.Project May 29, 2013Munir HusseiniNo Comments Suppose you’re developing a Visual Studio Extension and need to enumerate the references of a Visual Studio project. Here is…
Convert IVsHierarchy to ProjectItem or Project September 28, 2012Munir Husseini3 Comments The title says it all… here you go: Thanks to Ed Dore in the Visual Studio forums.