You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using DllExport for this project and I need a library (Newtonsoft.Json) that serialized JSON for me. As usual, I install it using NuGet. However, when using it inside my Java projects it crashes due to it not being able to find the dependency. As a double check I created another .NET project and simply just referenced the built DLL from there and got the same result. Whenever I use the DLL that is not generated by DllExport it works fine. Only the DLL built using DllExport has this issue.
I've checked the DLL that was generated using a dependency inspector tool ( https://github.com/lucasg/Dependencies ) and it seems like the dependency is registered however it is not found as you can see here:
I have attached the build log and full project.
Steps to reproduce:
DllExport -version: 1.7.1
Used Visual Studio / MSBuild / : Visual Studio 2019 / Jetbrains Rider 2020.1
For the case with Newtonsoft.Json.dll it will return different arch because it was written for 80386 (anycpu for this case regarding CLR) while parent modified module may point to other (see ResolveModule(PE RootPe,... ).
Therefore, you may also note the correct resolving for x86 but not for x64.
Also noticed they used value from offset 0x84, not from offset 0x98 (it could be more clear for resolving in CLR context).
Anyway, you need to report there because this is not related to .NET DllExport.
For the problem with Java
when using it inside my Java projects it crashes due to it not being able to find the dependency.
Again, make sure that all dependencies are accessible to load with correct architecture. But seems like this is duplicate of #101
AssemblyResolve is one of the possible solutions. You can also try Pre-processing same as for Conari.
Hey,
I am using DllExport for this project and I need a library (Newtonsoft.Json) that serialized JSON for me. As usual, I install it using NuGet. However, when using it inside my Java projects it crashes due to it not being able to find the dependency. As a double check I created another .NET project and simply just referenced the built DLL from there and got the same result. Whenever I use the DLL that is not generated by DllExport it works fine. Only the DLL built using DllExport has this issue.
I've checked the DLL that was generated using a dependency inspector tool ( https://github.com/lucasg/Dependencies ) and it seems like the dependency is registered however it is not found as you can see here:
I have attached the build log and full project.
Steps to reproduce:
DllExport -version
: 1.7.1Information from
Data
tab or log data:build_new.txt
Demo Project files / Samples / etc.:
GDBridgeProject.zip
The text was updated successfully, but these errors were encountered: