1

我正在使用 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 中编译该代码。有任何关于这个问题的指针或解决方案吗?谢谢您的帮助!

4

0 回答 0