Using native dlls in .Net Core 3.1

I have an application running on .net core 3.1. Also, I have a .Net standard 2.0 library which has reference of native dlls. Now, I need to add a reference of this .net standard library in .net core application. So, ultimately I will have to add the reference of native dlls in .net core application. After adding the native dll reference in .net core application during runtime when I try to access one of the methods of native dll I am facing below error.

An attempt was made to load a program with an incorrect format. (0x8007000B)

Please let me know how do I resolve this issue

Source: Windows Questions C++

LEAVE A COMMENT