Share via


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

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