5,845

Downloads

1,933

Downloads of v 1.2.6

2013-11-07

Last published

License details

provided by Sonatype

MIT

Unmanaged Exports (DllExport for .Net)

1.2.6

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)

To install Unmanaged Exports (DllExport for .Net), run the following command in the Package Manager Console

PM> Install-Package UnmanagedExports

Release Notes

- package restore will now work as expected
      - file extensions otherthan dll are possible now (e.g. .plugin)
      - some fixes regarding the creation of .exp, .def and .lib files
      - changed the nuget scripts to be more resilient
      - added new nuget CmdLets
      - You will now get warnings in the nuget package manager when a project's platform target is not x86 or x64.
      - some refactorings WRT notifications (warnings, etc.)

Owners

Authors

Robert Giesecke

Tags

Dependencies

This package has no dependencies.

Version History

Version Downloads Last updated
Unmanaged Exports (DllExport for .Net) 1.2.5.18722-Debug 555 Wednesday, June 26 2013
Unmanaged Exports (DllExport for .Net) 1.2.4.23262 1906 Monday, March 11 2013
Unmanaged Exports (DllExport for .Net) 1.2.3-Beta 328 Thursday, December 20 2012
Unmanaged Exports (DllExport for .Net) 1.2.2.23707 860 Monday, October 29 2012
Unmanaged Exports (DllExport for .Net) 1.2.1.28778 139 Wednesday, October 17 2012