0

NET5 which is compiled "anyCPU" and I would like to use my own library, which is working only as x86 compiled. Is it possible to combine it? Currently the library is loaded as dependent assembly (dll file), but when I try to run the code from this library I got System.BadImageFormatException, so I suppose it tries to run it as x64 process. Is it possible to run only methods from this library as x86?

Thanks.

Lukas
  • 71
  • 1
  • 7
  • _"Is it possible to run only methods from this library as x86?"_ -- not in the same process, no. See duplicate for how to force your AnyCPU assembly to execute as x86 so that it's compatible with the library you want to use. – Peter Duniho Jul 10 '21 at 19:27

0 Answers0