Find the number of lines in a project with powershell
Get-ChildItem -Filter "*.cs" -Recurse | Get-Content | Measure-Object -line
Thanks to everyone who answered. The way I ended up implementing this was
dir . -filter "*.cs" -Recurse -name | foreach{(GC $_).Count} | measure-object -sum
GC is alias for Get-Content
dir is alias for Get-ChildItem