在.NET4加载LuaInterface [英] Loading LuaInterface in .net4

查看:304
本文介绍了在.NET4加载LuaInterface的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C#应用程序我正在与我要用优异的 LuaInterface 。然而,当我运行该异常的应用程序,当我尝试做一些与LuaInterface:

I have a C# application I'm working on with which I want to use the excellent LuaInterface. However when I run the application I get this exception when I try to do something with LuaInterface:

混合模式组件建立对   运行时版本V2.0.50727   并且不能在4.0加载   运行时无需额外   配置信息。

Mixed mode assembly is built against version 'v2.0.50727' of the runtime and cannot be loaded in the 4.0 runtime without additional configuration information.

什么额外的配置信息,我可以给让这个负载正常吗?

What additional configuration information can I give to make this load properly?

推荐答案

您正在使用LuaInterface的pre-编译版本,这是建立对2.0版本的框架或没有在更改构建设置该LuaInterface项目。更改目标框架,以相同的版本作为你建立你的应用程序,并建立图书馆自己。你的问题就解决了​​这个样子。

You're using the pre-compiled version of LuaInterface which was built against the 2.0 version of the framework or didn't change the build settings in the LuaInterface project. Change the target framework to the same version as you're building your application and build the library yourself. Your problem will be solved this way.

这篇关于在.NET4加载LuaInterface的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆