mono/CppSharp
Tools and libraries to glue C/C++ APIs to high-level languages observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 83
- Release rhythm 25
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4863
- days_rel: 287
- days_push: 107
- n_releases_24m: 1
Adoption not part of the score
3404 stars · 541 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
CppSharp is a tool and library set that parses C/C++ headers and libraries and generates glue code to expose native APIs as managed .NET APIs (C# and C++/CLI). It can also be used standalone as a C# library for parsing native code into a rich Clang-based syntax tree.
Use cases
- generate C# bindings for a C/C++ library
- consume a native C++ library from .NET code
- parse C/C++ headers into a syntax tree in C#
- add managed scripting support to a native codebase
- create P/Invoke wrappers automatically
- override C++ virtual methods from managed code
When to choose
- you need automated C/C++ to .NET bindings instead of hand-writing P/Invoke
- you want a Clang-accurate C/C++ parser accessible from C#
- you need multi-platform, multi-ABI binding generation (Itanium, MS, ARM, iOS)
- you want Doxygen comments translated to C# XML docs in bindings
When to avoid
- you target languages other than C# or C++/CLI (consider SWIG or language-specific tools)
- you only need simple flat C interop that plain P/Invoke handles easily
- your project is not on the .NET ecosystem
Facets
library · maturity active
parser compiler sdk developer-tools developer-tools programming-languages parsers cross-platform dotnet c cpp windows cross-platform bindings-generator interop pinvoke clang c-sharp syntax-tree native-interop code-generation macos linux
1 source
- readme: https://github.com/mono/CppSharp · fetched 2026-08-28 · a8f44b71fefd
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| mono/CppSharp | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem