# The largest C# repositories by lines of code

OctoCounts has measured 309 public GitHub repositories whose primary programming language is C#. dotnet/roslyn is the largest, with 7,250,292 code lines across 24,440 files, counted with tokei on November 24, 2026. The table ranks the 50 largest by code lines; each row links to a report pinned to the commit it counted.

| Rank | Repository | Code lines | Total lines | Files | C# share |
| --- | --- | --- | --- | --- | --- |
| 1 | [dotnet/roslyn](https://octocounts.com/github/dotnet/roslyn) | 7,250,292 | 9,301,578 | 24,440 | 72.4% |
| 2 | [dotnet/runtime](https://octocounts.com/github/dotnet/runtime) | 5,045,675 | 7,037,247 | 24,215 | 49.5% |
| 3 | [space-wizards/space-station-14](https://octocounts.com/github/space-wizards/space-station-14) | 3,828,674 | 4,112,020 | 16,231 | 15.7% |
| 4 | [unoplatform/uno](https://octocounts.com/github/unoplatform/uno) | 1,777,039 | 2,319,780 | 20,845 | 83.7% |
| 5 | [dotnet/corefx](https://octocounts.com/github/dotnet/corefx) | 1,732,478 | 2,358,102 | 11,383 | 87.4% |
| 6 | [bitwarden/server](https://octocounts.com/github/bitwarden/server) | 1,522,410 | 2,073,498 | 6,718 | 86.9% |
| 7 | [CXWorld/CapFrameX](https://octocounts.com/github/CXWorld/CapFrameX) | 1,426,172 | 1,540,894 | 1,857 | 14.7% |
| 8 | [sebastienros/jint](https://octocounts.com/github/sebastienros/jint) | 1,210,936 | 1,635,779 | 5,179 | 61.2% |
| 9 | [KeenSoftwareHouse/SpaceEngineers](https://octocounts.com/github/KeenSoftwareHouse/SpaceEngineers) | 1,179,328 | 1,366,775 | 4,175 | 52.7% |
| 10 | [jhaizhou-ops/S2Arm](https://octocounts.com/github/jhaizhou-ops/S2Arm) | 1,146,445 | 1,541,987 | 7,076 | 44.3% |
| 11 | [Epi-Info/Epi-Info-Community-Edition](https://octocounts.com/github/Epi-Info/Epi-Info-Community-Edition) | 1,048,007 | 1,280,572 | 2,710 | 53.4% |
| 12 | [stride3d/stride](https://octocounts.com/github/stride3d/stride) | 995,311 | 1,416,306 | 8,664 | 82.7% |
| 13 | [microsoft/PowerToys](https://octocounts.com/github/microsoft/PowerToys) | 954,109 | 1,245,074 | 7,828 | 54.1% |
| 14 | [SubtitleEdit/subtitleedit](https://octocounts.com/github/SubtitleEdit/subtitleedit) | 906,658 | 1,175,658 | 3,504 | 67.1% |
| 15 | [abpframework/abp](https://octocounts.com/github/abpframework/abp) | 836,112 | 965,282 | 11,941 | 36.8% |
| 16 | [PowerShell/PowerShell](https://octocounts.com/github/PowerShell/PowerShell) | 818,108 | 1,225,380 | 3,467 | 57.8% |
| 17 | [Kareadita/Kavita](https://octocounts.com/github/Kareadita/Kavita) | 803,280 | 1,038,400 | 3,786 | 67.9% |
| 18 | [microsoft/testfx](https://octocounts.com/github/microsoft/testfx) | 760,381 | 985,459 | 3,907 | 93.5% |
| 19 | [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) | 685,798 | 1,008,855 | 9,992 | 74.4% |
| 20 | [nhibernate/nhibernate-core](https://octocounts.com/github/nhibernate/nhibernate-core) | 674,395 | 859,757 | 7,584 | 85.9% |
| 21 | [smartstore/SmartStoreNET](https://octocounts.com/github/smartstore/SmartStoreNET) | 652,282 | 826,881 | 4,416 | 44.6% |
| 22 | [QuantConnect/Lean](https://octocounts.com/github/QuantConnect/Lean) | 651,521 | 1,041,733 | 5,268 | 72.3% |
| 23 | [Devolutions/UniGetUI](https://octocounts.com/github/Devolutions/UniGetUI) | 583,150 | 642,227 | 1,786 | 47.6% |
| 24 | [iamcheyan/Zircon-Godot](https://octocounts.com/github/iamcheyan/Zircon-Godot) | 535,828 | 612,646 | 1,395 | 55.0% |
| 25 | [ppy/osu](https://octocounts.com/github/ppy/osu) | 470,012 | 618,933 | 5,129 | 97.3% |
| 26 | [Ciuntuc-BIM-Studio/lapin](https://octocounts.com/github/Ciuntuc-BIM-Studio/lapin) | 461,927 | 564,322 | 2,651 | 46.1% |
| 27 | [Axvser/VeloxDev](https://octocounts.com/github/Axvser/VeloxDev) | 450,596 | 562,281 | 2,267 | 37.9% |
| 28 | [blitzy-public-samples/StockSharp](https://octocounts.com/github/blitzy-public-samples/StockSharp) | 433,986 | 838,011 | 2,292 | 58.1% |
| 29 | [microsoft/semantic-kernel](https://octocounts.com/github/microsoft/semantic-kernel) | 420,992 | 624,620 | 4,147 | 52.5% |
| 30 | [AvaloniaUI/Avalonia](https://octocounts.com/github/AvaloniaUI/Avalonia) | 419,775 | 575,317 | 4,353 | 80.2% |
| 31 | [Squidex/squidex](https://octocounts.com/github/Squidex/squidex) | 416,138 | 524,957 | 4,138 | 39.3% |
| 32 | [JamesNK/Newtonsoft.Json](https://octocounts.com/github/JamesNK/Newtonsoft.Json) | 399,583 | 459,548 | 999 | 34.9% |
| 33 | [dotnet/efcore](https://octocounts.com/github/dotnet/efcore) | 396,736 | 663,011 | 3,301 | 79.9% |
| 34 | [dotnet/roslyn-analyzers](https://octocounts.com/github/dotnet/roslyn-analyzers) | 392,544 | 452,697 | 1,947 | 94.4% |
| 35 | [Sonarr/Sonarr](https://octocounts.com/github/Sonarr/Sonarr) | 381,251 | 441,268 | 4,494 | 53.5% |
| 36 | [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) | 373,314 | 731,290 | 9,031 | 34.7% |
| 37 | [openutau/OpenUtau](https://octocounts.com/github/openutau/OpenUtau) | 355,157 | 400,772 | 881 | 34.4% |
| 38 | [Radarr/Radarr](https://octocounts.com/github/Radarr/Radarr) | 347,706 | 402,869 | 4,524 | 47.3% |
| 39 | [SmartlyDressedGames/U3-SDK](https://octocounts.com/github/SmartlyDressedGames/U3-SDK) | 343,116 | 440,772 | 2,060 | 98.2% |
| 40 | [LordEnma/YandereSimulatorDecompiled](https://octocounts.com/github/LordEnma/YandereSimulatorDecompiled) | 319,459 | 355,380 | 1,876 | 100.0% |
| 41 | [icsharpcode/ILSpy](https://octocounts.com/github/icsharpcode/ILSpy) | 318,295 | 435,939 | 2,231 | 93.1% |
| 42 | [sharpemu/sharpemu](https://octocounts.com/github/sharpemu/sharpemu) | 317,874 | 532,022 | 1,150 | 94.6% |
| 43 | [dotnet/ef6](https://octocounts.com/github/dotnet/ef6) | 305,818 | 476,868 | 2,067 | 92.4% |
| 44 | [protobuf-net/protobuf-net](https://octocounts.com/github/protobuf-net/protobuf-net) | 288,887 | 399,415 | 1,864 | 58.7% |
| 45 | [NuGet/NuGet.Client](https://octocounts.com/github/NuGet/NuGet.Client) | 280,936 | 403,191 | 2,954 | 85.1% |
| 46 | [tui-cs/Terminal.Gui](https://octocounts.com/github/tui-cs/Terminal.Gui) | 276,973 | 419,315 | 1,720 | 96.3% |
| 47 | [DorianGrayII/MOM-2022-](https://octocounts.com/github/DorianGrayII/MOM-2022-) | 268,226 | 297,606 | 1,794 | 78.0% |
| 48 | [iOfficeAI/OfficeCLI](https://octocounts.com/github/iOfficeAI/OfficeCLI) | 267,507 | 391,038 | 1,032 | 73.7% |
| 49 | [optimajet/WorkflowEngine.NET](https://octocounts.com/github/optimajet/WorkflowEngine.NET) | 267,167 | 316,272 | 2,368 | 48.6% |
| 50 | [BAKAOLC/STS2-RitsuLib](https://octocounts.com/github/BAKAOLC/STS2-RitsuLib) | 237,874 | 334,379 | 1,466 | 92.2% |

Ranking rule: a repository belongs to C# when C# is its largest programming language by code lines; data and prose formats such as JSON, YAML, TOML and Markdown do not count as a language for this rule. "C# share" is the share of the repository's code lines written in C#. Code lines exclude comments and blank lines. Every report uses OctoCounts' canonical public options, with tests, docs and generated directories excluded, and reports were generated on different dates.

## FAQ

### Which C# repository has the most lines of code?

dotnet/roslyn is the largest C# repository in OctoCounts' index, with 7,250,292 code lines out of 9,301,578 total lines across 24,440 files, counted on November 24, 2026. dotnet/runtime follows with 5,045,675 code lines. Code size is not code quality: a larger count only means more source material.

### How does a repository join the C# leaderboard?

C# must be its primary programming language: the language with the most code lines in the repository's OctoCounts report, ignoring data and prose formats such as JSON, YAML, TOML and Markdown. The repository then needs a public report with at least 5 files, and it is listed when it is among the 50 largest by code lines.

### How many C# repositories has OctoCounts measured?

309 public GitHub repositories have C# as their primary programming language in OctoCounts' index. This page lists the 50 largest by code lines; a repository analyzed with custom counting options keeps those counts as a separate saved result.

### Does more source lines of code mean more complexity?

Not necessarily. SLOC measures size, not complexity, quality, or maintainability. A larger codebase can mean more features, more generated or vendored code, more verbose language idioms, or more tests — none of which imply the code is harder to work with. Use line counts to gauge the scale of what you would be reading or maintaining, not as a quality signal.

## Related OctoCounts pages

- [The largest codebases by programming language](https://octocounts.com/languages)
- [How OctoCounts counts lines of code](https://octocounts.com/docs/methodology)
- [Hall of Monoliths: largest repositories by lines of code](https://octocounts.com/hall-of-monoliths)
- [How many lines of code? The largest codebases, counted](https://octocounts.com/docs/largest-codebases)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [OctoCounts: count lines of code in any public GitHub repository](https://octocounts.com/)
