从哪里可以为项目设置“构建”或“不构建”合同参考?(From where we can set “Build”or “Do Not Build” Contract reference for a pr

编程入门 行业动态 更新时间:2024-10-17 00:25:44
从哪里可以为项目设置“构建”或“不构建”合同参考?(From where we can set “Build”or “Do Not Build” Contract reference for a project?)

对于解决方案中的几乎所有项目,我都会收到以下警告:

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

代码契约构建参考汇编操作

但是我无法找到任何可以在visual studio中设置此选项的提示。

任何帮助都非常感谢。

感谢致敬

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.

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:

enter image description here

更多推荐

本文发布于:2023-07-22 09:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1219106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:合同   项目   从哪里   set   project

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!