Count Number of Lines in a Visual Studio Project
avatar

This is a trick to count the number of lines of code written in a Visual Studio Project.  From a command prompt type the following command in the root of the directory:

(dir -include *.cs,*.cpp,*.h,*.idl,*.asmx -recurse | select-string .).Count

This entry was posted in News. Bookmark the permalink.

Leave a Reply