简体   繁体   English

从哪里可以为项目设置“构建”或“不构建”合同参考?

[英]From where we can set “Build”or “Do Not Build” Contract reference for a project?

I get following warning for almost all my projects in a solution: 对于解决方案中的几乎所有项目,我都会收到以下警告:

Contract reference assembly for project 'X.X.X' not found. Select 'Build' or 'DoNotBuild' for Contract Reference in project settings.

Code contracts build reference assembly actions 代码契约构建参考汇编操作

But I am unable to find any hint of from where we can set this option in visual studio. 但是我无法找到任何可以在visual studio中设置此选项的提示。

Any help on this much appreciated. 任何帮助都非常感谢。

Thanks and Regards 感谢致敬

Right click on project, Properties and on the Code Contracts tab You will find this option: 右键单击项目,“属性”,然后在“代码合同”选项卡上,您将找到以下选项:

在此输入图像描述

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

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