The convoluted build configuration automation model (EnvDTE/EnvDTE80)

August 29, 2008

One of the most complex things of the automation model (EnvDTE/EnvDTE80) of Visual Studio is the set of classes/properties to manage the build configurations of solutions and projects, because of the complexity itself of the configuration model of Visual Studio with matrixes of configuration names/platform names per solution and per project (nothing to object here, […]

Question: DTE.Version = "7.00" for VS.NET 2002, "7.10" for VS.NET 2003,… which are the next values in the series for VS 2005 and VS 2008?

August 28, 2008

You would say that they should be “8.00” for VS 2005 and “9.00” for VS 2008, but somehow Microsoft changed the pattern and the actual results are “8.0” for VS 2005 and “9.0” for VS 2008. I found a bug today in the code for the next version of my MZ-Tools add-in because of this […]

Visual Studio 2008 SP1 new icon showing versión “9”

August 14, 2008

Apart from fixing bugs and providing new features, VS 2008 SP1 includes a tiny welcome detail: it shows the Visual Studio version (“9″) in the icon of the shortcuts and in the icon of the main window caption. For those of us developing extensions for Visual Studio, we have to have several Visual Studio versions […]

MZ-Tools Articles Series: HOWTO: Add an error with navigation to the Error List from a Visual Studio add-in

August 13, 2008

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 errors to the ErrorList. There is good news: there is not only one […]

MZ-Tools Articles Series: HOWTO: Get an OutputWindowPane to output some string from a Visual Studio add-in or macro

August 13, 2008

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 VBA, not sure now), so while in English you had: For i […]

The (missing) Visual Studio 2008 SDK Reference

August 12, 2008

While I don’t write VS packages with the SDK, sometimes I need to use the SDK documentation to get an interface/service (most of the time to answer some question in the forums, or to do something that can’t be achieved with the automation model EnvDTE for add-ins). Since I don’t know by heart the name […]

Code files without a project

August 11, 2008

Most code files belong to a project, which can be C#, VB.NET, etc. and all the files of the project must be in the same language. VS 2005 introduced Web Site projects which allow to mix code files in different languages. In both cases, when you request the code model from the code file using […]

More on PRB: "Could not copy temporary files to the output directory" when running add-in project

August 10, 2008

Three years ago I wrote the article PRB: ‘Could not copy temporary files to the output directory’ error building Visual Studio .NET add-in explaining the common cause for that error when running an add-in project. There is a second cause that happens when you have a dead devenv.exe process, which can happen from time to […]

MZ-Tools Articles Series: HOWTO: Retrieve the Command that created a CommandBarControl from a Visual Studio add-in or macro

August 8, 2008

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, which is the intuitive thing that one would think. It was not until today that I realized […]

HOTFIX: A command-line add-in does not load when you start the Visual Studio 2005 IDE

August 7, 2008

Quite a few months ago I published a post that became quite popular about the Frustrations with command-line add-ins for Visual Studio, where it was mentioned a bug in the Visual Studio 2005 IDE which didn’t loaded command-line add-ins. Today I have found that Microsoft released a hotfix for this problem: FIX: A command-line add-in […]