\Moles\moles.args"退出代码-1002。 [英] \Moles\moles.args" exited with code -1002.

查看:86
本文介绍了\Moles\moles.args"退出代码-1002。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我已经使用Pex和Moles编写了一个单元测试。它在我的本地工作站上构建并正常工作。但是,当我试图检查时在TFS中的代码,门控构建失败,并显示以下错误消息。任何指针和帮助将非常感谢
,因为我已经花了4-5个小时来解决这个问题。谢谢


错误消息:


 


摩尔:代码:程序集不包含任何类型或无法正确加载


C:\Program Files\Microsoft Moles \bin\Microsoft.Moles.targets(79):命令"" C:\Program Files \\ \\ Microsoft Moles \bin\moles.exe" @C:\ProjectPath\obj\Release\Moles\moles.args"退出代码-1002。

解决方案

您是否可以启用诊断以获取更详细的消息?打开.moles文件并在< Moles元素上添加'Diagnostic =" true"'。


此外,您的操作系统x86和TFS服务器x64是否有机会?


Hi,

I have written a unit test using Pex and Moles.It builds and works fine in my local workstation.However, when trying to checkin  the code in TFS, the gated build fails with the following error message.Any pointers and help will be greatly appreciated as I have already spent 4-5 hours on this issue.Thanks

Error Message:

 

Moles: code : assembly contains no types or failed to load properly

C:\Program Files\Microsoft Moles\bin\Microsoft.Moles.targets (79): The command ""C:\Program Files\Microsoft Moles\bin\moles.exe" @C:\ProjectPath\obj\Release\Moles\moles.args" exited with code -1002.

解决方案

Could you enable diagnostics to get a more verbose message? Open the .moles file and add 'Diagnostic="true"' on the <Moles element.

Also, is your OS x86 and the TFS server x64 by any chance?


这篇关于\Moles\moles.args&QUOT;退出代码-1002。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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