Loading LuaInterface in .net4

让人想犯罪 __ 提交于 2019-12-04 07:09:37

问题


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 load properly?


回答1:


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.



来源:https://stackoverflow.com/questions/3844057/loading-luainterface-in-net4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!