代码合同和VS Express。 [英] Code Contracts and VS Express.

查看:101
本文介绍了代码合同和VS Express。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!
$


我最近了解到CodeContracts可以在Express版本VS中使用。足以编辑文件*.сsproj添加一行

Hi!

I recently learned that CodeContracts can use in Express version VS. It's enough to edit the file *.сsproj adding a line

<CodeContractsEnableRuntimeChecking> True </ CodeContractsEnableRuntimeChecking>




这是真的吗?



但我有一个问题。我尝试了最新版本 - 1.4.40602.0。

我下载了第一个学术版。在显示EULA并单击"下一步"后,尝试安装安装程序时出现未处理的异常崩溃。

我下载了商业版标准版。安装程序在第一次按下Next后立即崩溃。

我下载了Premium Edition。它拒绝工作,因为此安装程序需要VS2010 Premium或更高版本,或VS2008 Team System。

最后明确:我只安装了VC#Express 2010和VS2008 Shell与F#。但为什么不使用前两个安装程序?
$


我的系统在该计算机上的WinXP SP3,所有最后更新。整个.NET Frameworks 2.0,3.0,3.5,4.0。



我希望能够将CodeContracts用于教育目的,使用Visual Studio的Express版本。

任何想法?



抱歉我的英语不好。


Is this true?

But I have a problem. I tried the latest version - 1.4.40602.0.
I downloaded first academic version. When trying to install the installer crashes with the unhandled exception after display the EULA and clicking Next.
I downloaded the commercial version Standard Edition. The installer crashes immediately after the first pressing Next.
I downloaded Premium Edition. It refuses to work, because This installer requires VS2010 Premium or up, or VS2008 Team System.
The last clear: I have installed only VC# Express 2010 and VS2008 Shell with F#. But why not work the former two installer?

My system on that computer WinXP SP3, all last updates. Whole .NET Frameworks 2.0, 3.0, 3.5, 4.0.

I'd like to be able to use CodeContracts for educational purposes with the Express version of the Visual Studio.
Any ideas?

Sorry for my bad English.

推荐答案

"代码约定"属性窗格取决于能否在Visual Studio中调用某些API。我的理解是Express中没有这些API。这意味着您应该能够安装这些工具,您将无法通过属性窗格控制它们
。您可以手动编辑.csproj文件,也可以使用命令行中的工具。

The Code Contracts property pane depends on being able to call certain APIs in Visual Studio. My understanding is that those APIs are not available in Express. This means that you should be able to install the tools, you just won't be able to control them via the property pane. You can either manually edit the .csproj files or else use the tools from the command line.

我不知道为什么在尝试安装时会出现这些错误。

I don't know why you are getting those errors when you try to install it.

您可能需要查看
http://rise4fun.com/CodeContracts
 并查看这是否适合您。

You might want to look at http://rise4fun.com/CodeContracts and see if that will work for you.


这篇关于代码合同和VS Express。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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