ilneg is a small IL native exports generator. It scans a managed assembly and emits artifacts based on
UnmanagedCallersOnly exports. The output format is selected by the generator name (first argument).
ilneg ilink path/to/YourAssembly.dll out.xml
ilneg ilink path/to/YourAssembly.dll -
ilneg --list-generatorsilink— emits an ILLink descriptor that keeps onlyUnmanagedCallersOnlyentry points and their dependencies.
<linker>
<assembly fullname="YourAssembly">
<type fullname="Your.Namespace.Exports">
<method name="Foo" />
</type>
</assembly>
</linker>dotnet publish -c Release -r <rid> src/ILneg/ILneg.csprojNative binaries are packed into:
runtimes/<rid>/native/ilneg[.exe]
MPL-2.0-no-copyleft-exception. See LICENSE.md.