NicolTIP#029: 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

Comments (0)