Change Current Thread’s Currency Symbol July 16, 2013Munir HusseiniNo Comments Consider the following code. It shows how a decimal value is converted into a string that contains an amount and…
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…
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…
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…
Automatically Re-Create Stored Procedures In SQL Server May 22, 2013Munir HusseiniNo Comments One day I discovered that the system table sysdepends in my database was not valid. I know that dropping and…
A Flexible And Convenient Type Conversion Helper in C# May 21, 2013July 30, 2020Munir HusseiniNo Comments Every once in a while I need to convert objects of an unknown type into a known type; sometimes these…