Skip to content

Instantly share code, notes, and snippets.

@karoltheguy
Created February 15, 2017 20:41
Show Gist options
  • Save karoltheguy/b3fde88c627b66b749c6080b236bcd51 to your computer and use it in GitHub Desktop.
Save karoltheguy/b3fde88c627b66b749c6080b236bcd51 to your computer and use it in GitHub Desktop.
Count all lines of code using powershell
(dir -exclude *.g.cs,*.i.cs,*.designer.cs,assemblyinfo.cs,app.* -include *.cs,*.xaml -recurse | select-string .).Count
//Missing exclusion of empty lines and comments(?)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment