Karolis2011
Explore posts from servers❔ Native DLL in source generator
I am trying to make source generator that relies on custom native DLL, compiled from Rust.
But Issue I am facing issues with managing it to be able to load them.
ExtBySharp.Generator
is project containing HybridByondCodeGenerator
DMNet.SpacemanDMM
is project containing native bindings and wrapper for native DLL.
libdreammaker.a
and dreammaker.dll
are native DLLs.
ExtBySharp.Game
is project for containing generator source files *.dm
and *.dme
and needs code to be generated for.
I tried renfrecing project directly, but it didn't work, then I ended up packaging it as nuget package, and generator seems to load things, just it fails at loading native dlls, I tried putting them under analyzers/dotnet/cs
, build/
and I am out of idea what to try.13 replies