Visual Studio

VS2010 HatPackage did not load correctly

This morning when I started Visual Studio 2010 it threw a wobbly at me. It seemed the Microsoft.VisualStudio.TeamFoundation.VersionControl.HatPackage did not load correctly. Of course I tried to Google for this error but I was unable to find anything useful apart from trying to repair the Visual Studio installation. Fortunately I have the /Log option set in the shortcut so I had a logfile with the errors. Unfortunately, apart from the error that the package did not load the log contained nothing useful.

After trying a few times (hoping it would go away) there was one time where a dialog popped up Meer >

Export Locals

Introduction:

In this forum thread (warning: Dutch) someone was complaining that it’s not really easy to export the contents of the Locals debug window to a XML file. I’ve neved had the need for that myself but I thought, it can’t be that hard. Turns out it isn’t.

I’ve written a VS2010 add-in that adds a menu item to the Tools menu in Visual Studio that will export all the locals for the current stack frame and open the XML file in Visual Studio. As always a picture says more than a thousand words so see for yourself:

A program in debug mode, Meer >