输入行太长,运行ccrefgen [英] Input line too long running ccrefgen

查看:77
本文介绍了输入行太长,运行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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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