Here’s a Visual Studio 2005 Add-In that shows you the total lines of code within your solution/project. It also show the breakout of each individual file.

Currently it doesn’t include line counts from files within any WebSites that are included inside your solution. But overall this Addin is simple and to the point. Besides, it’s open source so you can fix/modify it in any way you’d like.

Visual Studio 2005 Line Counter Add-In + Source Code