混合程序集,无法在4.0(或者4.....)运行时中加载该程序集

新建一个appconfig文件,添加如下代码

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>

  问题OK了

参考:

http://hi.baidu.com/wfossghguijpuze/item/540c6f36ac808349033edc91

http://msdn.microsoft.com/zh-cn/library/bbx34a2h.aspx

http://msdn.microsoft.com/zh-cn/library/w4atty68.aspx

posted @ 2013-04-02 10:32  一抹、思乡泪  Views(353)  Comments(0Edit  收藏  举报