我正在使用LuaInterface来允许lua在我的C#控制台应用程序上。我在vs2012上对它进行了编程,并没有任何问题。我必须将这段代码添加到app.config文件中才能运行:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Net.Http.Primitives" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.2.28.0" newVersion="4.2.28.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
我目前正在使用带有.NET 4.6的vs 2015 RC,它给了我这个错误:
not load file or assembly 'lua51, Version=0.0.0.0, Culture=neutral, PublicKeyToken=1e1fb15b02227b8a' or one of its dependencies. An attempt was made to load a program with an incorrect format
我也下载了luainterface的源代码,我能够在vs 2015中编译该代码。这个问题的指针或解决方案是什么?谢谢你的帮助!