# dotnet/roslyn SLOC report

> As of 2026-10-06 (commit 00c2c5abc3a7), dotnet/roslyn contains 9,248,957 total lines: 7,201,205 code, 1,164,452 comments, 883,300 blank, across 24,389 files in 23 languages (top: C# 72.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

dotnet/roslyn has 7,201,205 source lines of code out of 9,248,957 total lines across 24,389 files, counted from the main ref at commit 00c2c5abc3a7 by the OctoCounts tokei engine on 2026-10-06. 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 00c2c5abc3a7, 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 295 code lines per file. C# accounts for 72.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 16,031 | 6,248,412 | 5,199,371 | 473,611 | 575,430 |
| Visual Basic | 3,751 | 2,134,974 | 1,737,548 | 119,561 | 277,865 |
| JSON | 102 | 132,034 | 132,028 | 0 | 6 |
| .NET Resource | 97 | 63,358 | 55,276 | 5,664 | 2,418 |
| MSBuild | 614 | 27,696 | 22,895 | 2,809 | 1,992 |
| XML | 9 | 24,829 | 21,524 | 2,196 | 1,109 |
| PowerShell | 72 | 8,631 | 6,885 | 822 | 924 |
| XAML | 60 | 6,786 | 6,444 | 68 | 274 |
| YAML | 113 | 7,327 | 5,946 | 630 | 751 |
| Razor | 134 | 5,553 | 4,483 | 45 | 1,025 |
| Shell | 34 | 5,384 | 4,152 | 472 | 760 |
| HTML | 1 | 2,002 | 2,002 | 0 | 0 |

Top language (C# 72.2%). Generated at 2026-10-06T18:40:25.516823147+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/00c2c5abc3a7865be84d4dacfe18bb6151aa5ba7?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).

## Report FAQ

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

dotnet/roslyn has 9,248,957 total lines, including 7,201,205 code lines, 1,164,452 comment lines, and 883,300 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 00c2c5abc3a7, 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 00c2c5abc3a7 on 2026-10-06T18:40:25.516823147+00:00.

## Similar repository reports

- [unoplatform/uno](https://octocounts.com/github/unoplatform/uno) — C#, 1,612,908 code lines
- [bitwarden/server](https://octocounts.com/github/bitwarden/server) — C#, 1,359,699 code lines
- [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) — C#, 673,131 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 648,760 code lines
- [ppy/osu](https://octocounts.com/github/ppy/osu) — C#, 460,582 code lines
- [iamcheyan/Zircon-Godot](https://octocounts.com/github/iamcheyan/Zircon-Godot) — C#, 384,715 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)
