kotlin-native-nuget Help

Overview

kotlin-native-nuget

kotlin-native-nuget is a Gradle plugin that bridges Kotlin/Native and C# across a NuGet package boundary.

It works in two directions:

  • Kotlin → C# (forward): publish a Kotlin/Native library as a NuGet package. KSP generates a C# Interop.cs at compile time, so consumers add the package and call your Kotlin API as ordinary C# classes. No consumer-side tooling required.

  • C# → Kotlin (reverse): bind a C# NuGet package's public API into Kotlin. The Gradle plugin resolves the dependency, extracts its API surface, and generates Kotlin-idiomatic stubs backed by opaque handles.

Where to go next

Last modified: 21 July 2026