UnmanagedExports.Repack
1.0.3
See the version list below for details.
Requires NuGet 4.0 or higher.
Install-Package UnmanagedExports.Repack -Version 1.0.3
dotnet add package UnmanagedExports.Repack --version 1.0.3
<PackageReference Include="UnmanagedExports.Repack" Version="1.0.3" />
paket add UnmanagedExports.Repack --version 1.0.3
#r "nuget: UnmanagedExports.Repack, 1.0.3"
// Install UnmanagedExports.Repack as a Cake Addin
#addin nuget:?package=UnmanagedExports.Repack&version=1.0.3
// Install UnmanagedExports.Repack as a Cake Tool
#tool nuget:?package=UnmanagedExports.Repack&version=1.0.3
Repackaging of UnmanagedExports 1.2.7 to be compatible with PackageReference.
A set of compile-time libraries (nothing to deploy) and a build task that enable you to export functions from managed code to native applications.
That means, you can create plugins in a managed language like C# or F# for native applications that only have a C-Api (like Notepad++).
The nuget package is all you need. Just mark your methods with [DllExport] and build for x86, x64 or ia64.
Hints:
- You have to set your platform target to either x86, ia64 or x64. AnyCPU assemblies cannot export functions.
- The export name defaults to the method name and the calling convention to stdcall. If that's all what you want, you can just use [DllExport] without parameters.
- You cannot put your exports in generic types or export generic methods. (The CLR wouldn't know what type parameters to use)
Product | Versions |
---|---|
.NET | net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows |
.NET Core | netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1 |
.NET Standard | netstandard2.0 netstandard2.1 |
.NET Framework | net452 net46 net461 net462 net463 net47 net471 net472 net48 |
MonoAndroid | monoandroid |
MonoMac | monomac |
MonoTouch | monotouch |
Tizen | tizen40 tizen60 |
Xamarin.iOS | xamarinios |
Xamarin.Mac | xamarinmac |
Xamarin.TVOS | xamarintvos |
Xamarin.WatchOS | xamarinwatchos |
This package has no dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on UnmanagedExports.Repack:
Package | Downloads |
---|---|
ClrMDExports
Helper library to create extensions for WinDbg/LLDB using ClrMD. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on UnmanagedExports.Repack:
Repository | Stars |
---|---|
chrisnas/DebuggingExtensions
Host of debugging-related extensions such as post-mortem tools or WinDBG extensions
|