Fody / Costura

Embed references as resources
MIT License
2.41k stars 275 forks source link

I used Costura.Fody in my project to package it as a class library for others to call #946

Closed Zhx-Chenailuoding closed 2 months ago

Zhx-Chenailuoding commented 7 months ago

I used Costura.Fody in my project to package it as a class library for others to call. In the FodyWeavers.xml file, I used: `

libiomp5md

`

Then, when referencing the DLL I packaged in another project, an error occurred stating that the file could not be found: System.DllNotFoundException: Unable to load DLL 'dll\x64\libiomp5md.dll': The specified module could not be found.

tom-englert commented 7 months ago

Hard to say without seeing any context. However costura is in maintenance mode and no longer actively developed, so don't expect too much here.

To pack and load unmanaged assemblies, it's sometimes easier to do it by your own rather than using costura, so you have full control.

Zhx-Chenailuoding commented 7 months ago

So, I can only manually package the dll using Visual Studio?

GeertvanHorrik commented 2 months ago

Closing because of age.