Packaging a non-C# binary into a NuGet package.
So I've been optimizing this logging library of mine to try to get it as fast as I can. with the main bottleneck appearing to be as fast as it can be I just wrote the main functions of it in Rust and decided to interop it in. this showed to give a rough ~50ms improvement on benchmarking but now I don't know how to package this thing really... In the C# section it roughly looks as so:
but since the
Closest I've gotten is managing to package
which for some reason doesn't even pack
but since the
DllImport is directly just the dll, I'm pretty sure I have to have print.dll in the same path as the library right? which brings the question of how do I do that..?Closest I've gotten is managing to package
print.dll in there but not in the right path causing an exception when you try to print something. Currently what I have so far is as sowhich for some reason doesn't even pack
print.dll into the package. Any help would be appreciated!


