简体   繁体   English

如何在Visual Studio 2008中启用代码协定?

[英]How to enable code contracts in Visual studio 2008?

I am (mainly) a .NET developer and for my project I use visual studio 2008. After watching this video: http://channel9.msdn.com/Blogs/Peli/Getting-started-with-Code-Contracts-in-Visual-Studio-2008 我(主要)是.NET开发人员,对于我的项目,我使用Visual Studio2008。观看此视频后: http : //channel9.msdn.com/Blogs/Peli/Getting-started-with-Code-Contracts-in- Visual Studio-2008

it became clear for me that I want to use code contracts. 对我来说,很明显我想使用代码契约。 This video page includes a link to to devlabs where I can download the required resources for visual studio 2010 and later: http://msdn.microsoft.com/en-us/devlabs/dd491992.aspx 该视频页面包含指向devlab的链接,我可以在其中下载Visual Studio 2010和更高版本的必需资源: http : //msdn.microsoft.com/zh-cn/devlabs/dd491992.aspx

Where do I get the required resources for visual studio 2008? 在哪里可以获得Visual Studio 2008所需的资源? I know the principle now (clearly explained on channel 9) but it is not clear to me how I can enable it in visual studio 2008. 我现在知道该原理(在第9通道中有清楚说明),但是我不清楚如何在Visual Studio 2008中启用它。

Actually the download is for every non express version of Visual Studio (2008 included). 实际上,该下载适用于Visual Studio的每个非快速版本(包括2008)。 The two links for 2010 and 2012 are just for the IDE extensions, to enable intellisense and code snippets. 2010和2012的两个链接仅用于IDE扩展,以启用智能感知和代码片段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM