【.Net】useLegacyV2RuntimeActivationPolicy的使用
把项目从VS2008的项目升级到VS2010的项目,结果重新打开出现了错误
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 information.
解决方法很简单,右键项目,添加新项》应用配置文件 (Add>New Item...>Application Configuration File),内容如下
<configuration> <startup useLegacyV2RuntimeActivationPolicy="true"> <supportedRuntime version="v4.0"/> </startup> </configuration>
至于为什么加看What is useLegacyV2RuntimeActivationPolicy for?
标签: DotNet
还没有人抢沙发呢~