# dotnet/runtime SLOC report

> As of 2026-11-19 (commit 27e4619ce003), dotnet/runtime contains 7,043,106 total lines: 5,049,679 code, 1,093,910 comments, 899,517 blank, across 24,255 files in 48 languages (top language: C# 49.4%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

dotnet/runtime has 5,049,679 source lines of code out of 7,043,106 total lines across 24,255 files, counted with tokei from the main ref at commit 27e4619ce003 on November 19, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving dotnet/runtime to commit 27e4619ce003, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

dotnet/runtime: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 71.7% of all lines, comments represent 15.5%, and the repository averages 208 code lines per file. C# accounts for 49.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 16,029 | 3,538,997 | 2,495,924 | 593,945 | 449,128 |
| C++ | 1,088 | 1,384,329 | 965,016 | 226,741 | 192,572 |
| C | 1,310 | 651,807 | 482,542 | 85,294 | 83,971 |
| C Header | 2,112 | 681,714 | 459,885 | 110,586 | 111,243 |
| Monkey C | 1 | 262,144 | 262,144 | 0 | 0 |
| C++ Header | 167 | 77,167 | 54,476 | 11,298 | 11,393 |
| MSBuild | 1,041 | 54,793 | 47,107 | 2,995 | 4,691 |
| .NET Resource | 181 | 48,677 | 42,170 | 6,505 | 2 |
| Visual Basic | 72 | 49,904 | 35,799 | 5,019 | 9,086 |
| TypeScript | 188 | 38,771 | 29,427 | 5,196 | 4,148 |
| GNU Style Assembly | 189 | 34,474 | 22,122 | 7,001 | 5,351 |
| CMake | 221 | 26,721 | 21,196 | 2,067 | 3,458 |

Top language: C# 49.4%. Generated on November 19, 2026. Canonical report: https://octocounts.com/github/dotnet/runtime

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/dotnet/runtime/commit/27e4619ce003e460819fe1b98c4d32339abf3c2b?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=87f1f33a5d8efbfc82c5cd30362004a374b604a8cc3090411efc1eaf5fe5e99c).

## Report FAQ

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

dotnet/runtime has 5,049,679 lines of code, plus 1,093,910 comment lines and 899,517 blank lines, for 7,043,106 total lines at commit 27e4619ce003 on November 19, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 27e4619ce003, 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/runtime?

This OctoCounts report was generated from main at commit 27e4619ce003 on November 19, 2026.

## Similar repository reports

- [dotnet/roslyn](https://octocounts.com/github/dotnet/roslyn) — C#, 7,250,929 code lines
- [unoplatform/uno](https://octocounts.com/github/unoplatform/uno) — C#, 1,770,568 code lines
- [bitwarden/server](https://octocounts.com/github/bitwarden/server) — C#, 1,500,986 code lines
- [sebastienros/jint](https://octocounts.com/github/sebastienros/jint) — C#, 1,209,472 code lines
- [KeenSoftwareHouse/SpaceEngineers](https://octocounts.com/github/KeenSoftwareHouse/SpaceEngineers) — C#, 1,179,328 code lines
- [jhaizhou-ops/S2Arm](https://octocounts.com/github/jhaizhou-ops/S2Arm) — C#, 1,118,117 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)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
