Current Entries | Archives   RSS

 


Back-porting, the fun way

Sunday 18th December, 2005


The timing is nothing short of hilarious. Just a couple of days after MS pulled Visual Studio 6.0 from MSDN, I'm merrily having a go at back-porting Visual Lint (a complex project by any standards - it consists of 51,000 lines of code, has 3 custom tool windows, a custom output window pane, two thread pools and a lot of COM event handling) to see if it will run under Visual Studio 6.0 as well. I must be mad!

We decided to take a look at this a couple of months ago after a long look at the download stats for ResOrg - half of which are still for the Visual Studio 6.0 version (I talked about this a while ago in the blog entry Platforms, Platforms, Platforms. Although VS 6.0 is missing most of the UI we need, I'm pretty sure that can be circumvented to some extent - although whether it's enough to make a it useable under Visual Studio 6.0 is entirely another question. There is only one way to find out, of course...

For safety reasons this is all happening in a branch from the main project, so we've the added fun of keeping the branch up to date with changes from the main development trunk. Fortunately, that's not too onerous - just a bit of a pain.

To make it more interesting we've set ourselves a goal of making a single binary work on all of our target platforms (Visual Studio 6.0, 2002, 2003 and 2005) as the last thing we want to do is have to maintain two codebases. To achieve this, we've had to abstract our access to all of the Visual Studio automation interfaces we use (VS 6.0 and VS.NET have radically different interfaces). That's been quite a slog, believe me!

However, as of this morning that's all complete and the add-in's internal object model is now happily working with VS 6.0. It's actually a bit more than that - in actual fact all the major commands and functions are working (we've even got background lint analysis running) - but of course with no UI so you can't see the results yet.

The next stage is of course to integrate a basic UI. For sanity's sake we'll implement that via modeless dialogs first before we even consider attempting deeper integration with the IDE (we do have some leads to follow up, but that is likely to be a major effort).

One word of caution. A great deal of work needs to be done before we could even consider releasing this functionality publicly (a lot depends on what we discover as we work through the UI) so please don't start asking about release dates yet. If we do decide it is practical to release a version of Visual Lint which supports Visual Studio 6.0, you'll hear it here first (or on Gimpel's message board, of course!).

That's for another day though - first we're taking a break for a week or so. Happy Christmas!

Posted by Anna at 7:03pm | Get Permalink