Count LOC in a VS solution

Option #1: Quick-and-dirty Powershell (count non-empty lines)

 C:\> (dir -include *.cs,*.xaml -recurse | select-string .).Count

Option #2: cloc (perl command-line tool)

-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
XML                              6             21              0          30818
C#                              18            110            148            518
MSBuild scripts                  3              0             21            203
ASP.Net                          2              0              0             22
-------------------------------------------------------------------------------
SUM:                            29            131            169          31561
-------------------------------------------------------------------------------
Advertisements

About Panos

My name is Panos Kokkinidis and I am R&D Manager in Relational S.A., Athens, Greece.
This entry was posted in Etc. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s