关于“混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该程序集”问题
解决方法:
在app.config中添加一个配置节:startup
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
</startup>
注意上面的 useLegacyV2RuntimeActivationPolicy="true" 是必须的。
主要引用 http://www.cnblogs.com/weixing/archive/2012/04/09/2439060.html
谢谢!
浙公网安备 33010602011771号