代码契约建立参考组装行为 [英] Code contracts build reference assembly actions

查看:64
本文介绍了代码契约建立参考组装行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用代码合同,并试图了解它的编译选项应我用的时候。该合同组装构建选项在项目属性定义

I am using code contracts and trying to understand which of the build options shall I use and when. The contract assembly build options are defined in project properties

代码契约 - >合同参考大会



  • 构建

  • DoNotBuild

任何想法或建议?

推荐答案

是的,无和DoNotBuild选择似乎有点奇怪的。

Yes, the None and DoNotBuild options seem a bit strange.

如果您选择None,并与合同的项目引用库中,你会得到一个警告。结果
如果选择DoNotBuild你赢了'T得到警告。

If you select None and reference the library in a Project with contracts, you will get a Warning.
If you select DoNotBuild you won't get a warning.

当然,只有建立产生参考总成,并为.EXE这一切并不重要。

And of course only Build produces a reference assy, and for a .EXE it all doesn't matter.

这篇关于代码契约建立参考组装行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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