第一种方案:
用require吧
<configuration>
...
<startup>
<requiredRuntime version="4.0.30319" safemode="true"/>
</startup>
...
</configuration>
第二种方案:
<configuration>
...
<startup>
<requiredRuntime version="V4.0"/>
</startup>
...
</configuration>