DllExporterNet4X64 1.0.0

Used to export native-code-like functions from a .NET assembly (for 64-bit)

Install-Package DllExporterNet4X64 -Version 1.0.0
dotnet add package DllExporterNet4X64 --version 1.0.0
<PackageReference Include="DllExporterNet4X64" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DllExporterNet4X64 --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Usage:

  1. Add reference to DllExporterNet4X64.exe to your 64-bit assembly project.
  2. Add DllExporterX64.DllExport attribute to static methods that will be exported.
  3. Add following post-build command to project properties:
    DllExporterNet4X64.exe $(TargetFileName)
    move $(TargetName).Exports$(TargetExt) $(TargetFileName)
  4. Build project.

See also this: https://stackoverflow.com/questions/8957970/how-do-you-export-a-method-in-a-cil-dll-so-that-a-native-program-can-call-it

This does end up putting the .pdb in a weird place which is hard coded into your resulting DLL. Worth knowing if you have trouble with the debugging.

Usage:

  1. Add reference to DllExporterNet4X64.exe to your 64-bit assembly project.
  2. Add DllExporterX64.DllExport attribute to static methods that will be exported.
  3. Add following post-build command to project properties:
    DllExporterNet4X64.exe $(TargetFileName)
    move $(TargetName).Exports$(TargetExt) $(TargetFileName)
  4. Build project.

See also this: https://stackoverflow.com/questions/8957970/how-do-you-export-a-method-in-a-cil-dll-so-that-a-native-program-can-call-it

This does end up putting the .pdb in a weird place which is hard coded into your resulting DLL. Worth knowing if you have trouble with the debugging.

Release Notes

Initial Release.

Dependencies

This package has no dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0 129 2/21/2019