I recently wanted to see how many lines of code were in a particular C# project. Google lead me to the following article: http://www.limilabs.com/blog/source-lines-of-code-count-using-powershell
I refined that script to exclude most of the designer files that Visual Studio generates via UI tools. The results are below in a gist.
Published November 8th, 2014