NicolTIP#031- How to count number of lines of code in a c# project via powershell?

June 06, 2012 - less than 1 minute read

(dir -include *.cs -recurse | select-string "^(\s*)//" -notMatch | select-string "^(\s*)$" -notMatch).Count