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?
User contributions licensed under CC BY-SA 3.0