输入行太长,运行ccrefgen

编程入门 行业动态 更新时间:2024-10-23 06:18:12
本文介绍了输入行太长,运行ccrefgen的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好,

我已经在一个包含大量项目的解决方案中启用了构建引用程序集。

在某些开发人员身上机器我收到错误:

输入行太长。

C:\Program Files\Microsoft\Contracts\MsBuild\v4.0\Microsoft.CodeContracts.targets(292,5) :错误MSB3073:命令"" C:\Program Files \ Microsrosoft \Contracts\Bin\ccrefgen"退出(删除了很​​长的参数字符串),代码为255。

这基本上说是有限制的地方我也可以检查我的代码并使用代码合同?

无论如何都没有关于检查位置和每个解决方案的项目数量的独裁性?

谢谢

解决方案

好的我已经关闭了引用程序集的生成,现在我也得到了重写器的错误。

所以,因为这不再能够用重写的程序集进行编译,所以我似乎必须去通过并禁用所有Contract.Requires<>在我的代码中?

毋庸置疑,超过2000条这样的线路不太理想。

这是一个可复制的代码合同错误吗?

Hello,

I have turned on build reference assemblies in a solution with quite a few projects.

On some developers' machines I get the error:

The input line is too long.

C:\Program Files\Microsoft\Contracts\MsBuild\v4.0\Microsoft.CodeContracts.targets(292,5): error MSB3073: The command ""C:\Program Files\Microsoft\Contracts\Bin\ccrefgen" (very long argument string removed) exited with code 255.

Is this basically saying that there are limitations to where I can check my code out too and use code contracts?

Is there anyway around this without getting dictatorial about check out locations and the number of projects per solution?

Thanks

解决方案

OK I have turned off the generation of reference assemblies and now I get the error with the rewriter too.

So, as this is no longer able to compile with rewritten assemblies, it seems I have to go through and disable all Contract.Requires<> in my code?

Needless to say, with over 2000 such lines this is less than desirable.

Is this a replicable bug with code contracts?

更多推荐

输入行太长,运行ccrefgen

本文发布于:2023-07-14 22:02:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1107280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:太长   ccrefgen

发布评论

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

>www.elefans.com

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