Unmanaged Exports (DllExport for .Net) - Adapted for PackageReference NuGet Package

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).




Got any Unmanaged Exports (DllExport for .Net) - Adapted for PackageReference Question?





Info

Version: 1.0.4
Author(s): Robert Giesecke, repacked by Kevin Gosse
Last Update: Saturday, February 16, 2019
.NET Fiddle: Create the first Fiddle
Project Url: https://github.com/kevingosse/UnmanagedExports.Repack
NuGet Url: https://www.nuget.org/packages/UnmanagedExports.Repack


Install
Install-Package UnmanagedExports.Repack
dotnet add package UnmanagedExports.Repack
paket add UnmanagedExports.Repack
UnmanagedExports.Repack Download (Unzip the "nupkg" after downloading)

1 package depend on this package.


Tags



STATS

must-have-score

1.1

avg-downloads-per-day

6

days-since-last-release

1894