Jungle Coder

The musings of a third culture coder and missionary kid

Counting lines of C# using Powershell

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

Previously: Performance Gotchas in .Net 2 - Regex timeouts
Next: Meta: Bugs and Suggestions


Reqired fields are marked with a '*'