I am unable to use Nuget Nlua to read .lua file in C#

1

Using visual studio with class application I added the NLua via NuGet. I want to read in and .lua file (BTW, of there is a better way do let me know) My code is this:

...
using NLua;
...
using (Lua lua = new Lua())...

But when I run it I get an exception on the above line:

System.BadImageFormatException HResult=0x8007000B Message=An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B) Source=KeraLua StackTrace: at KeraLua.NativeMethods.luaL_newstate() at NLua.Lua..ctor()

What am I doing wrong? I tried to search the internet and came up with solutions that it is since I am running a 64bit app while the one I am trying to load (NLUA) in 32bit. Is that it?

THANK YOU

c#
lua
nlua
asked on Stack Overflow Aug 1, 2020 by dandan • edited Aug 2, 2020 by Egor Skriptunoff

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0