Visual Studio 2010 Pro RC 中代码契约的属性
所以看来 Visual Studio 2010 的属性中应该有一个“代码契约”选项卡。我到处都找不到它。也许是我的 Visual Studio 安装有问题?我正在运行 RC 版本。
这就是我所拥有的:
替代文本 http://img192.imageshack.us/img192/ 5928/lcmitpm2aur5e4uiabdtofw.png
有人知道可能出了什么问题吗?也许我找错地方了?
谢谢
So it seems there should be a "Code Contracts" tab in Visual Studio 2010's properties. I can't find it anywhere. Maybe it's a problem with my Visual Studio installation? I am running the RC version.
This is what I have:
alt text http://img192.imageshack.us/img192/5928/lcmitpm2aur5e4uiabdtofw.png
Anyone knows what might be wrong? Maybe I am looking in the wrong place?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您必须首先下载并安装代码合约。即使如此,您也只能进行合约的运行时检查。静态检查需要 Visual Studio 的高级版。
You have to download and install code contracts first. Even then, you'll only get run-time checking of contracts. Static checking requires the premium edition of visual studio.
您是否确实安装了 来自 DevLabs 的代码合同内容?
Have you actually installed the Code Contracts stuff from DevLabs?