K
K
kir_cipher2016-09-21 10:20:28
.NET
kir_cipher, 2016-09-21 10:20:28

Is it possible to move a dll out of the x86 and x64 subfolders of a third party library so that everything works?

Hello!
I use the SQlite libraries, there is an .Interop dll, which is duplicated for different architectures (located in the x86 and x64 folders).
And I desperately need these libraries to be either on the same level with the file (whence the question is whether it is possible to change the name of the library so that it is then discovered by the native library, which is most likely incredible), or you need to create 2 resource files for the project ( it seems possible, but I don’t know how), from where the program will unpack the necessary libraries with the proper architecture.
I just stuff all the used dlls into the project resources so that it is completely autonomous, but this breaks everything for me a little, because you can’t create 2 resources with the same name Thank you in
advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rifat, 2016-09-21
@serber

Create 2 resources with different keys by adding 'x86' and 'x64' to the end of the name, for example sqlite_x86 and sqlite_x64 and load the one you need depending on the architecture.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question