Microsoft.Contracts和System.Diagnostics [英] Microsoft.Contracts and System.Diagnostics

查看:84
本文介绍了Microsoft.Contracts和System.Diagnostics的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在IDE中正确构建的Windows Phone 7解决方案。但是,当我将其签入时,MSBuild会报告大多数文件的以下错误:

I have a Windows Phone 7 solution that builds correctly within the IDE. However, when I check it in, MSBuild reports the following error for most files:

xxx.cs(2):类型或名称空间名称'Contracts'在名称空间'System.Diagnostics'中不存在(您是否缺少程序集引用?)

xxx.cs (2): The type or namespace name 'Contracts' does not exist in the namespace 'System.Diagnostics' (are you missing an assembly reference?)

我的.cs文件有行

using System.Diagnostics.Contracts;

和我的参考文献包括

Microsoft.Contract

我做错了什么?

 

推荐答案

您好,

您是否有构建服务器? 您可能只需要在服务器上安装代码合同。

Do you have a build server?  You probably just need to install Code Contracts on the server.

-   Dave

- Dave


这篇关于Microsoft.Contracts和System.Diagnostics的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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