混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该...

 

程序中用到SQLite,添加引用后会出现此错误。解决方法如下


在app.config的configuration节点下添加


 <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>

 

参考: http://www.mysjtu.com/page/M0/S566/566095.html

你可能感兴趣的:(混合模式程序集是针对“v2.0.50727”版的运行时生成的,在没有配置其他信息的情况下,无法在 4.0 运行时中加载该...)