Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tool to calculate # of lines of code in code behind and aspx files?

Tags:

asp.net

vb.net

Looking for a tool to calculate the # of lines of code in an asp.net (vb.net) application.

The tricky part is that it needs to figure out the inline code in aspx files also.

So it will be lines of code in vb files (minus comments) plus the inline code in aspx files (not all the lines of aspx files, just the code between <% %> tags.

like image 608
Abdu Avatar asked Sep 22 '08 04:09

Abdu


2 Answers

SlickEdit has some feature for that. I am not sure if it counts inline code. Worth giving it a try. If it does not work, let me know so that I can update my post.

The SLOC Report The SLOC Report tool provides an easy way to count the lines of code. The line count is divided into three categories: code, comments, and whitespace. Once the lines of code have been counted, the results are drawn as a pie graph. SLOC reports may be generated for solutions, projects or individual files.

like image 59
Gulzar Nazim Avatar answered Sep 18 '22 10:09

Gulzar Nazim


From a previous post, Source Monitor appears to be the answer and NDepend for .NET.

like image 34
Brandon Avatar answered Sep 19 '22 10:09

Brandon