Skip to main content
CppSharp package icon

CppSharp

CppSharp is a tool and set of libraries which allows programmers to use C/C++ libraries with high-level programming languages (such as C#). It is a tool that takes C/C++ header and library files and generates the necessary glue to surface the native API as a managed API. Such an API can be used to consume an existing native library in your high-level code or add scripting support to a native codebase. The supported target languages at present are C# and C++/CLI. It can also be used as a library to parse native code into a syntax tree with a rich declaration and type information model.

Total Downloads
572.9K
572,882
Published
Feb 4, 2021
Latest stable version

Install

.NET CLI
dotnet add package CppSharp --version 0.11.2
Package Manager Console
Install-Package CppSharp -Version 0.11.2
PackageReference
<PackageReference Include="CppSharp" Version="0.11.2" />

Frameworks

.NETStandard2.0

Dependencies

[4.7.0, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.