开发者

Loading LuaInterface in .net4

开发者 https://www.devze.com 2023-01-18 16:35 出处:网络
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:

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:

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 lo开发者_Python百科ad properly?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消