“CCCheck已停止工作”错误 [英] "CCCheck has stopped working" error

查看:101
本文介绍了“CCCheck已停止工作”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我第一次使用CodeContracts而我 今天早上已经加载并安装了1.4.60218.0


(我使用带有SP1的VS2010 Pro)。


我启用了"执行静态合同检查"对于我的项目,当我构建输出窗口时显示以下内容


 未处理的异常:System.TypeInitializationException:'System.Data.Entity.Internal的类型初始值设定项。 AppConfig'抛出异常。 ---> System.TypeLoadException:无法从程序集'mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089'加载类型'System.Runtime.CompilerServices.ExtensionAttribute'




CodeContracts在VS2010和.Net 4下工作吗?  谢谢。




$

解决方案

好的,我吓坏了。你打我几分钟就发布了这个完全相同的问题:



http://social.msdn.microsoft.com/Forums / EN-US / codecontracts /线程/ d1ec7403-fe6d-4285-812f-97e4e4f69b06


This is the first time I've used CodeContracts and I downloaded and installed 1.4.60218.0 this morning

(Im using VS2010 Pro with SP1).

I've enabled "Perform Static Contract Checking" for my project and when I build the output window shows the following

 Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Data.Entity.Internal.AppConfig' threw an exception. ---> System.TypeLoadException: Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

Does CodeContracts work under VS2010 and .Net 4?  Thanks.

解决方案

OK, I'm spooked. You beat me to posting this exact same question by a matter of minutes:

http://social.msdn.microsoft.com/Forums/en-US/codecontracts/thread/d1ec7403-fe6d-4285-812f-97e4e4f69b06


这篇关于“CCCheck已停止工作”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆