Ever wondered how much managed code Microsoft uses?

Dan Fernandez has announced he's changing jobs, which is of course interesting in its own right - but at the bottom of his post he's put up some interesting stats.

These stats were published internally a couple of months ago, and Dan got permission to publish them.  So if you've wondered how many lines of managed code we use in our products, heres an indication which will help you to understand how important .Net is not just to our customers but to our internal development teams as well.  Is .Net a viable platform to build products on?  We think so!

Here's an extract from Dans entry:

The Microsoft's not using Managed Code Myth
One of the biggest challenges in my old job was that customers didn't think Microsoft was using managed code. Well, the truth is that we have a good amount of managed code in the three years that the .NET Framework has been released including operating systems, client tools, Web properties, and Intranet applications. For those of you that refuse to believe, here's an estimate of the lines of managed code in Microsoft applications that I got permission to blog about:

  • Visual Studio 2005: 7.5 million lines
  • SQL Server 2005: 3 million lines
  • BizTalk Server: 2 million lines
  • Visual Studio Team System: 1.7 million lines
  • Windows Presentation Foundation: 900K lines
  • Windows Sharepoint Services: 750K lines
  • Expression Interactive Designer: 250K lines  
  • Sharepoint Portal Server: 200K lines
  • Content Management Server: 100K lines

Comments (6)
  1. tzagotta says:

    While these numbers are impressive, I am guessing they don’t tell the whole story. For example, Visual Studio is a huge product, and I’ll bet that 7.5MLOC is just a small percentage of the overall product, especially when you count the command-line tools as well.

    Also, in a product like SQL Server where perf is really critical, is the managed code used in performance-sensitive areas or not?

    I think if Microsoft wants to get rid of myths and speculation, there should be more openness about the "actual state" of .NET use within Microsoft. I’m confident there is great experience and judgement available within Microsoft on that topic that is really not getting out to outside architects, mangers, developers, etc.

  2. Travis Owens says:

    I would say the reason VS2005 has so much managed code simply because VS2005 was written in VS2005 alpha/beta, iirc.

    This leads to the assumption that EVERY new function of VS2005 was written in .Net 2.0, no new code was written in C++ or whatever they originally used.

  3. Vincent says:


    The information on the number of managed code lines is great. Its really a huge amount of lines of code. Thanks for the information.


  4. anon says:

    Bollocks. 7.5 million lines of managed code in Visual Studio would sure make the bulk of Visual Studio itself. I don’t buy that at all.

  5. Garry Trinder says:

    To address a couple of these comments.

    I know that internally our developers use a number of tools for developng software – you’d be surprised – I was. VS2005 was generally not written with alpha/beta versions of itself.

    And Mr Anon – there are many, many more than 7.5 million lines of code in VS2005. I dont know the exact number but I’ve seen percentages of the total and 7.5 million is not close to 100%.

  6. What ever happened to checking your sources before you link to something? Steven Bink just posted a link…

Comments are closed.

Skip to main content