Click here to Skip to main content
14,299,664 members

A tool statistic C# solution code count

Rate this:
5.00 (1 vote)
Please Sign up or sign in to vote.
5.00 (1 vote)
14 Jan 2008CPOL
With this tool, you can statistic a C# solution or project code count.

Image 1


When you finished your project ,you may want to know how many code you have write,This tool is just you want, help you statistic the code count.

Function: open a C# project file which extension is ".csproj",then you will see in the listview the project's summary info, each cs file's code lines and whole project's code line count.

2008/1/15 : VsSolutionTools description

At the base of last version, add support of solution file and support VS 2005 format, you not only can statistic the code count of a project but also can statistic the count of a C# solution.


Now this tool can only ready C# projcet file , ,C++ project file not include,and can't read solution file ,next I want to read a solution to get all project in it and caculate line count.The solution file is not in XML format ,but project is,I don't know how read it easyly,if you know tell me.

ToDo :

If I have enough time, I will support the solution of VS 2008 version, add statistic the count of comment and blank line.

Any question of advice please send mail to :


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Andy Lang
China China
No Biography provided

Comments and Discussions

Questionwhat about comments? Pin
Sanjay M20-Nov-05 18:40
memberSanjay M20-Nov-05 18:40 
Generalnice idea Pin
ozkan.pakdil13-Aug-05 6:56
memberozkan.pakdil13-Aug-05 6:56 
GeneralRe: nice idea Pin
Andy Lang3-Jul-07 18:35
memberAndy Lang3-Jul-07 18:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Posted 25 Jan 2005


8 bookmarked