Click here to Skip to main content
15,897,273 members
Articles / Programming Languages / C#

Counting Lines of Code in C#

Rate me:
Please Sign up or sign in to vote.
3.56/5 (29 votes)
19 Dec 20043 min read 126.6K   5.7K   32  
An article on recursively counting lines of code in files from a given directory.
Microsoft Visual Studio Solution File, Format Version 8.00
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LineCountEngine", "LineCountEngine\LineCountEngine.csproj", "{ECD84A0B-31FD-48CE-B969-23A1CF5D824E}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LineCountGUI", "LineCountGUI\LineCountGUI.csproj", "{EACC2CA9-489B-4AF1-8099-41DC9D4714D8}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PieChart", "PieChart\PieChart.csproj", "{696E929A-6A4A-4C6D-A8B2-C4F25F781940}"
	ProjectSection(ProjectDependencies) = postProject
	EndProjectSection
EndProject
Global
	GlobalSection(SolutionConfiguration) = preSolution
		Debug = Debug
		Release = Release
	EndGlobalSection
	GlobalSection(ProjectConfiguration) = postSolution
		{ECD84A0B-31FD-48CE-B969-23A1CF5D824E}.Debug.ActiveCfg = Debug|.NET
		{ECD84A0B-31FD-48CE-B969-23A1CF5D824E}.Debug.Build.0 = Debug|.NET
		{ECD84A0B-31FD-48CE-B969-23A1CF5D824E}.Release.ActiveCfg = Release|.NET
		{ECD84A0B-31FD-48CE-B969-23A1CF5D824E}.Release.Build.0 = Release|.NET
		{EACC2CA9-489B-4AF1-8099-41DC9D4714D8}.Debug.ActiveCfg = Debug|.NET
		{EACC2CA9-489B-4AF1-8099-41DC9D4714D8}.Debug.Build.0 = Debug|.NET
		{EACC2CA9-489B-4AF1-8099-41DC9D4714D8}.Release.ActiveCfg = Release|.NET
		{EACC2CA9-489B-4AF1-8099-41DC9D4714D8}.Release.Build.0 = Release|.NET
		{696E929A-6A4A-4C6D-A8B2-C4F25F781940}.Debug.ActiveCfg = Debug|.NET
		{696E929A-6A4A-4C6D-A8B2-C4F25F781940}.Debug.Build.0 = Debug|.NET
		{696E929A-6A4A-4C6D-A8B2-C4F25F781940}.Release.ActiveCfg = Release|.NET
		{696E929A-6A4A-4C6D-A8B2-C4F25F781940}.Release.Build.0 = Release|.NET
	EndGlobalSection
	GlobalSection(ExtensibilityGlobals) = postSolution
	EndGlobalSection
	GlobalSection(ExtensibilityAddIns) = postSolution
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Australia Australia
I have been a software engineer since graduating in 1999, and am working for a govenment organisation in Australia developing a software framework for scientists. I have been programming in C#/.Net since 2002 and I really think it is the bees-knees of computer languages/platforms. I still dable a little in C++, but that is mainly game programming for fun.

Comments and Discussions