# MonoGame/MonoGame SLOC report

> As of 2026-11-21 (commit 58c3f764305d), MonoGame/MonoGame contains 285,551 total lines: 196,947 code, 49,070 comments, 39,534 blank, across 1,573 files in 18 languages (top language: C# 68.8%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

Source: [MonoGame/MonoGame on GitHub](https://github.com/MonoGame/MonoGame) · counted commit [58c3f764305d](https://github.com/MonoGame/MonoGame/tree/58c3f764305dee10f75c10f57ad9380344c6514b)

MonoGame/MonoGame has 196,947 source lines of code out of 285,551 total lines across 1,573 files, counted with tokei from the develop ref at commit 58c3f764305d on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving MonoGame/MonoGame to commit 58c3f764305d, 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

MonoGame/MonoGame: 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 69.0% of all lines, comments represent 17.2%, and the repository averages 125 code lines per file. C# accounts for 68.8% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 1,328 | 201,652 | 135,440 | 37,092 | 29,120 |
| C Header | 32 | 37,006 | 27,371 | 5,544 | 4,091 |
| C++ | 24 | 30,745 | 24,519 | 1,480 | 4,746 |
| MSBuild | 76 | 5,565 | 5,205 | 104 | 256 |
| HLSL | 28 | 2,359 | 1,523 | 183 | 653 |
| Visual Studio Solution | 17 | 1,383 | 1,366 | 0 | 17 |
| XSL | 1 | 453 | 443 | 0 | 10 |
| XML | 32 | 434 | 431 | 3 | 0 |
| JSON | 4 | 248 | 248 | 0 | 0 |
| Lua | 2 | 272 | 214 | 12 | 46 |
| .NET Resource | 1 | 123 | 64 | 59 | 0 |
| SVG | 1 | 63 | 63 | 0 | 0 |

Top language: C# 68.8%. Generated on November 21, 2026. Canonical report: https://octocounts.com/github/MonoGame/MonoGame

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/MonoGame/MonoGame/commit/58c3f764305dee10f75c10f57ad9380344c6514b?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=8088a13bc04876bc5d324339f39fefd38bb615b9fdcc1842053d0f3c22a67acc).

## Report FAQ

### How many lines of code does MonoGame/MonoGame have?

MonoGame/MonoGame has 196,947 lines of code, plus 49,070 comment lines and 39,534 blank lines, for 285,551 total lines at commit 58c3f764305d on November 21, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the MonoGame/MonoGame line count measured?

OctoCounts resolved the public GitHub repository to commit 58c3f764305d, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for MonoGame/MonoGame?

This OctoCounts report was generated from develop at commit 58c3f764305d on November 21, 2026.

## Similar repository reports

- [zqq-699/BlockHelm-Launcher](https://octocounts.com/github/zqq-699/BlockHelm-Launcher) — C#, 197,153 code lines
- [ProtonVPN/win-app](https://octocounts.com/github/ProtonVPN/win-app) — C#, 195,429 code lines
- [shinyflvre/VRCNext](https://octocounts.com/github/shinyflvre/VRCNext) — C#, 192,175 code lines
- [KnifeLemon/Filee](https://octocounts.com/github/KnifeLemon/Filee) — C#, 202,868 code lines
- [aodianjun/PCL-CE-AI](https://octocounts.com/github/aodianjun/PCL-CE-AI) — C#, 189,930 code lines
- [PCL-Community/PCL-CE](https://octocounts.com/github/PCL-Community/PCL-CE) — C#, 182,903 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [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)
