使用.NET 4加载LuaInterface。

我正在开发一个 C# 应用程序,希望使用优秀的 LuaInterface。然而,当我尝试使用 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.

我该提供哪些配置信息来使 LuaInterface 正常加载?

原文链接 https://stackoverflow.com/questions/3844057

点赞
stackoverflow用户472015
stackoverflow用户472015

你正在使用 LuaInterface 的预编译版本,该版本是针对 2.0 版本框架构建的,或者你没有更改 LuaInterface 项目中的构建设置。将目标框架更改为与构建应用程序的版本相同,并自行构建库,以此解决您的问题。

2010-10-11 07:01:40