NLUA bad image exception in x64 .Net core

239 Views Asked by At

I use NLUA dll in my visual studio 2017 on windows 10 , I am using .Net core 2.1 x64 to build and publish my ASP.Net core Application .

Bad Image exception 'bad image KeraLua.NativeMethods.LuaLNewState()' is recieved when i try to do MyLua = new NLUA.Lua()

I use latest NLUA 1.3.2 .

The problem is that when i delete my .Netcore x64 and use x32 , it works perfectly !

I am obligated to use .Netcore x64 but it isn't working . Any Help will be appreciated.

0

There are 0 best solutions below