dotnet/roslyn has 7,209,258 source lines of code out of 9,257,626 total lines across 24,394 files, counted from the main ref at commit f5ceb9666d68 by the OctoCounts tokei engine on 2026-10-12. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-12 (commit f5ceb9666d68), dotnet/roslyn contains 9,257,626 total lines: 7,209,258 code, 1,164,690 comments, 883,678 blank, across 24,394 files in 23 languages (top: C# 72.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving dotnet/roslyn to commit f5ceb9666d68, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 77.9% of all lines, comments represent 12.6%, and the repository averages 296 code lines per file. C# accounts for 72.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 16036 | 6256987 | 5207342 | 473843 | 575802 |
| Visual Basic | 3751 | 2135019 | 1737591 | 119561 | 277867 |
| JSON | 102 | 132035 | 132029 | 0 | 6 |
| .NET Resource | 97 | 63362 | 55280 | 5664 | 2418 |
| MSBuild | 614 | 27727 | 22916 | 2815 | 1996 |
| XML | 9 | 24829 | 21524 | 2196 | 1109 |
| PowerShell | 72 | 8644 | 6898 | 822 | 924 |
| XAML | 60 | 6786 | 6444 | 68 | 274 |
| YAML | 113 | 7327 | 5946 | 630 | 751 |
| Razor | 134 | 5553 | 4483 | 45 | 1025 |
| Shell | 34 | 5384 | 4152 | 472 | 760 |
| HTML | 1 | 2002 | 2002 | 0 | 0 |
Top language (C# 72.2%). Generated at .
dotnet/roslyn has 9,257,626 total lines, including 7,209,258 code lines, 1,164,690 comment lines, and 883,678 blank lines.
OctoCounts resolved the public GitHub repository to commit f5ceb9666d68, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit f5ceb9666d68 on 2026-10-12T06:54:57.465019576+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for dotnet/roslyn on this page — 7,209,258 code lines across 12 languages, counted by tokei.