在vs2010 .net 4.0 引用dll .net 2.0
出现
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
的包错,查了很多资料,花了很多时间
终于搞定,各位大侠见笑了。
外文网站上的。一个老外给别人的解答
From the Solution Explorer, select your project->right click->add->new item
Select Application Configuration, highlight everything and paste this (from earlier or perhaps other posts)
<?xml version="1.0" encoding="utf-8" ?>
< configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<requiredRuntime version="v4.0.20506" />
</startup>
< /configuration>