# dotnet/aspnetcore SLOC report

> As of 2026-09-17 (commit d004c0435916), dotnet/aspnetcore contains 2,140,073 total lines: 1,525,283 code, 322,062 comments, 292,728 blank, across 15,866 files in 36 languages (top: C# 84.5%). Default configuration. Counted with tokei via OctoCounts.

dotnet/aspnetcore has 1,525,283 source lines of code out of 2,140,073 total lines across 15,866 files, counted from the main ref at commit d004c0435916 by the OctoCounts tokei engine on 2026-09-17. 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/aspnetcore to commit d004c0435916, 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 71.3% of all lines, comments represent 15.0%, and the repository averages 96 code lines per file. C# accounts for 84.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 10,699 | 1,758,071 | 1,288,542 | 215,313 | 254,216 |
| Razor | 1,593 | 48,390 | 41,027 | 1,119 | 6,244 |
| JSON | 436 | 37,580 | 37,569 | 0 | 11 |
| TypeScript | 195 | 38,266 | 28,180 | 4,113 | 5,973 |
| C++ | 98 | 34,830 | 25,956 | 3,645 | 5,229 |
| MSBuild | 784 | 30,688 | 25,630 | 1,618 | 3,440 |
| C Header | 131 | 16,324 | 10,409 | 3,383 | 2,532 |
| .NET Resource | 97 | 15,576 | 9,968 | 5,607 | 1 |
| CSS | 101 | 11,165 | 9,862 | 202 | 1,101 |
| Java | 92 | 12,907 | 9,480 | 1,210 | 2,217 |
| JavaScript | 156 | 9,179 | 7,803 | 596 | 780 |
| PowerShell | 104 | 9,890 | 7,746 | 1,060 | 1,084 |

Top language (C# 84.5%). Generated at 2026-09-17T03:19:15.141651377+00:00. Canonical report: https://octocounts.com/github/dotnet/aspnetcore

## Reproduce this report

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

## Report FAQ

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

dotnet/aspnetcore has 2,140,073 total lines, including 1,525,283 code lines, 322,062 comment lines, and 292,728 blank lines.

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

OctoCounts resolved the public GitHub repository to commit d004c0435916, 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 d004c0435916 on 2026-09-17T03:19:15.141651377+00:00.

## Similar repository reports

- [bitwarden/server](https://octocounts.com/github/bitwarden/server) — C#, 1,318,736 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 654,692 code lines
- [SmartlyDressedGames/U3-SDK](https://octocounts.com/github/SmartlyDressedGames/U3-SDK) — C#, 343,112 code lines
- [iamcheyan/Zircon](https://octocounts.com/github/iamcheyan/Zircon) — C#, 335,013 code lines
- [radarr/radarr](https://octocounts.com/github/radarr/radarr) — C#, 330,102 code lines
- [Sonarr/Sonarr](https://octocounts.com/github/Sonarr/Sonarr) — C#, 307,829 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)
