# dotnet/aspnetcore SLOC report

> dotnet/aspnetcore: 681,148 code lines at commit d7870e7ec8da, counted with tokei-15.0.0 on 2026-11-16. Saved result 9bea6795fad9acb21857aec4e1828e0d131878e185cfc2f048004d1d2df529ab.

dotnet/aspnetcore has 681,148 source lines of code out of 1,003,683 total lines across 9,976 files, counted with tokei from the main ref at commit d7870e7ec8da on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving dotnet/aspnetcore to commit d7870e7ec8da, 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/aspnetcore: 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 large codebase by counted code lines. Code represents 67.9% of all lines, comments represent 19.8%, and the repository averages 68 code lines per file. C# accounts for 74.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 6,707 | 753,027 | 509,454 | 144,646 | 98,927 |
| JSON | 318 | 30,148 | 30,138 | 0 | 10 |
| C++ | 98 | 34,830 | 25,956 | 3,645 | 5,229 |
| MSBuild | 528 | 21,865 | 17,945 | 1,358 | 2,562 |
| TypeScript | 154 | 24,975 | 17,725 | 3,454 | 3,796 |
| Razor | 541 | 19,926 | 17,162 | 615 | 2,149 |
| C Header | 131 | 16,324 | 10,409 | 3,383 | 2,532 |
| .NET Resource | 84 | 14,076 | 9,117 | 4,958 | 1 |
| PowerShell | 101 | 9,977 | 7,868 | 1,051 | 1,058 |
| CSS | 83 | 8,679 | 7,472 | 181 | 1,026 |
| JavaScript | 124 | 7,850 | 6,737 | 518 | 595 |
| Shell | 94 | 6,459 | 4,809 | 710 | 940 |
| YAML | 89 | 5,263 | 4,295 | 487 | 481 |
| Java | 68 | 5,278 | 3,527 | 1,029 | 722 |
| Sass | 2 | 1,995 | 1,985 | 5 | 5 |
| XML | 27 | 1,624 | 1,589 | 32 | 3 |
| Visual Studio Project | 11 | 935 | 920 | 4 | 11 |
| HTML | 33 | 912 | 793 | 26 | 93 |
| Autoconf | 26 | 731 | 634 | 0 | 97 |
| Batch | 118 | 732 | 569 | 22 | 141 |
| SVG | 30 | 418 | 410 | 4 | 4 |
| CMake | 1 | 376 | 319 | 15 | 42 |
| Python | 1 | 411 | 310 | 14 | 87 |
| F# | 11 | 284 | 221 | 0 | 63 |
| C | 2 | 450 | 177 | 205 | 68 |
| Monkey C | 1 | 219 | 170 | 13 | 36 |
| Lua | 4 | 196 | 140 | 19 | 37 |
| Protocol Buffers | 7 | 494 | 95 | 358 | 41 |
| Visual Studio Solution | 1 | 50 | 50 | 0 | 0 |
| NuGet Config | 4 | 52 | 48 | 4 | 0 |
| Module-Definition | 9 | 62 | 42 | 4 | 16 |
| INI | 5 | 61 | 34 | 12 | 15 |
| Dockerfile | 1 | 36 | 26 | 1 | 9 |
| LESS | 1 | 2 | 2 | 0 | 0 |
| Markdown | 180 | 6,699 | 0 | 4,551 | 2,148 |
| Plain Text | 381 | 28,267 | 0 | 27,719 | 548 |

Top language: C# 74.8%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/dotnet/aspnetcore/commit/d7870e7ec8da214eb96f96f5512aad0d89bfef11?reportId=9bea6795fad9acb21857aec4e1828e0d131878e185cfc2f048004d1d2df529ab&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

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

dotnet/aspnetcore has 681,148 lines of code, plus 199,043 comment lines and 123,492 blank lines, for 1,003,683 total lines at commit d7870e7ec8da on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit d7870e7ec8da, 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/aspnetcore?

This OctoCounts report was generated from main at commit d7870e7ec8da on November 16, 2026.

## Similar repository reports

- [smartstore/SmartStoreNET](https://octocounts.com/github/smartstore/SmartStoreNET) — C#, 652,282 code lines
- [QuantConnect/Lean](https://octocounts.com/github/QuantConnect/Lean) — C#, 649,573 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 637,226 code lines
- [Kareadita/Kavita](https://octocounts.com/github/Kareadita/Kavita) — C#, 785,235 code lines
- [PowerShell/PowerShell](https://octocounts.com/github/PowerShell/PowerShell) — C#, 818,067 code lines
- [abpframework/abp](https://octocounts.com/github/abpframework/abp) — C#, 834,902 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)
