Click here to Skip to main content
15,881,715 members
Articles / Programming Languages / C#
Article

A tool statistic C# solution code count

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
14 Jan 2008CPOL1 min read 45.5K   980   8   4
With this tool, you can statistic a C# solution or project code count.

Introduction

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.

ToDo:

Now this tool can only ready C# projcet file ,VB.net ,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 : nnlyx@sohu.com

License

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


Written By
Architect
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionbroken link to download demo zip file Pin
fredatcodeproject16-Oct-20 12:14
professionalfredatcodeproject16-Oct-20 12:14 
Questionwhat about comments? Pin
Sanjay M20-Nov-05 18:40
Sanjay M20-Nov-05 18:40 
Generalnice idea Pin
ozkan.pakdil13-Aug-05 6:56
ozkan.pakdil13-Aug-05 6:56 
GeneralRe: nice idea Pin
Andy Lang3-Jul-07 18:35
Andy 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.