Xxfast.Kotlin.Native.Interop
0.9.0
dotnet add package Xxfast.Kotlin.Native.Interop --version 0.9.0
NuGet\Install-Package Xxfast.Kotlin.Native.Interop -Version 0.9.0
<PackageReference Include="Xxfast.Kotlin.Native.Interop" Version="0.9.0" />
<PackageVersion Include="Xxfast.Kotlin.Native.Interop" Version="0.9.0" />
<PackageReference Include="Xxfast.Kotlin.Native.Interop" />
paket add Xxfast.Kotlin.Native.Interop --version 0.9.0
#r "nuget: Xxfast.Kotlin.Native.Interop, 0.9.0"
#:package Xxfast.Kotlin.Native.Interop@0.9.0
#addin nuget:?package=Xxfast.Kotlin.Native.Interop&version=0.9.0
#tool nuget:?package=Xxfast.Kotlin.Native.Interop&version=0.9.0
Xxfast.Kotlin.Native.Interop
![]()
The shared types behind NuGet packages built from Kotlin/Native libraries with kotlin-native-nuget.
You don't reference this package yourself. Every package the plugin builds depends on it, so it arrives with the first Kotlin-built package you install. Because they all share this one assembly, an exception thrown by any of them is the same .NET type, whichever package it came from.
What's in it
All types live in the Kotlin.Native.Interop namespace.
KotlinException: a Kotlin exception with no closer .NET equivalent.- Mapped exceptions that keep their usual .NET base type, such as
KotlinArgumentException(ArgumentException),KotlinInvalidOperationException(InvalidOperationException) andKotlinIOException(IOException). IKotlinException: implemented by all of the above. It carries the Kotlin class name and the Kotlin stack trace.KotlinOptional<T>: a parameter you can leave unset so Kotlin evaluates its default.KotlinNothing: the C# spelling of Kotlin'sNothingas a type argument.
Catching a Kotlin exception
using Kotlin.Native.Interop;
try
{
MappedExceptions.CheckOreoWeight(10);
}
catch (KotlinArgumentException ex)
{
Console.WriteLine(ex.Message);
}
A mapped exception is also caught by its .NET base type, so catch (ArgumentException) works too.
Versioning
This package is released with the plugin, at the plugin's version. A package built by plugin X
depends on this one from X up to the next major, so packages built by different plugin versions
restore onto a single copy.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.9.0 | 101 | 10/5/2026 |