Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Zhx-Chenailuoding opened this issue Apr 17, 2024 · 2 comments

Comments

@Zhx-Chenailuoding
Copy link

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:
<Costura> <Unmanaged64Assemblies> libiomp5md </Unmanaged64Assemblies> </Costura>

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
Copy link
Member

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants