# dotnet/roslyn SLOC report

> As of 2026-10-24 (commit e3c31f15b79e), dotnet/roslyn contains 9,273,291 total lines: 7,224,123 code, 1,164,781 comments, 884,387 blank, across 24,416 files in 23 languages (top: C# 72.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

dotnet/roslyn has 7,224,123 source lines of code out of 9,273,291 total lines across 24,416 files, counted from the main ref at commit e3c31f15b79e by the OctoCounts tokei engine on 2026-10-24. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving dotnet/roslyn to commit e3c31f15b79e, 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.

## Repository size insights

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.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 16,051 | 6,272,266 | 5,221,904 | 473,922 | 576,440 |
| Visual Basic | 3,751 | 2,135,451 | 1,737,969 | 119,561 | 277,921 |
| JSON | 102 | 132,042 | 132,036 | 0 | 6 |
| .NET Resource | 99 | 63,486 | 55,404 | 5,664 | 2,418 |
| MSBuild | 615 | 27,631 | 22,825 | 2,808 | 1,998 |
| XML | 9 | 24,831 | 21,523 | 2,199 | 1,109 |
| PowerShell | 73 | 8,689 | 6,936 | 821 | 932 |
| XAML | 60 | 6,709 | 6,386 | 55 | 268 |
| YAML | 112 | 7,206 | 5,840 | 626 | 740 |
| Razor | 134 | 5,553 | 4,483 | 45 | 1,025 |
| Shell | 35 | 5,419 | 4,178 | 471 | 770 |
| HTML | 1 | 2,002 | 2,002 | 0 | 0 |

Top language (C# 72.3%). Generated at 2026-10-24T12:05:25.218429025+00:00. Canonical report: https://octocounts.com/github/dotnet/roslyn

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/dotnet/roslyn/commit/e3c31f15b79e226656e3b082a921d4d60127b1fa?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D&reportId=b4d942f87b74cec92e4fdb5c12365ef2e15457786891825bb901a9e2c212aefc).

## Report FAQ

### How many lines of code does dotnet/roslyn have?

dotnet/roslyn has 9,273,291 total lines, including 7,224,123 code lines, 1,164,781 comment lines, and 884,387 blank lines.

### How was the dotnet/roslyn line count measured?

OctoCounts resolved the public GitHub repository to commit e3c31f15b79e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for dotnet/roslyn?

This OctoCounts report was generated from main at commit e3c31f15b79e on 2026-10-24T12:05:25.218429025+00:00.

## Similar repository reports

- [unoplatform/uno](https://octocounts.com/github/unoplatform/uno) — C#, 1,725,667 code lines
- [bitwarden/server](https://octocounts.com/github/bitwarden/server) — C#, 1,437,572 code lines
- [Epi-Info/Epi-Info-Community-Edition](https://octocounts.com/github/Epi-Info/Epi-Info-Community-Edition) — C#, 1,048,007 code lines
- [microsoft/PowerToys](https://octocounts.com/github/microsoft/PowerToys) — C#, 906,750 code lines
- [abpframework/abp](https://octocounts.com/github/abpframework/abp) — C#, 832,458 code lines
- [stride3d/stride](https://octocounts.com/github/stride3d/stride) — C#, 780,965 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
