Moles Generation - 不同命名空间中的相同类名
这个问题最初是在这里提出的:http://social.msdn.microsoft.com/Forums/en-US/pex/thread/60972f1f-735a-474e-be84-40cda8006ffa?prof=required。
我最近安装了 VS2010 的 Moles。我有具有相同类(相同名称)但在不同命名空间下的程序集。 Moles 通过为这些类生成 MClassName 和 MClassName01 来解决这个问题。这在本地工作得很好。但是,当其他人获得最新版本时,摩尔会重新生成,MClassName 变为 MClassName01,MClassName01 变为 MClassName,因此构建失败,直到所有单元测试再次修复。每次有人获得最新版本时都这样做是不可接受的。请提出解决方案。
当时的答案是,这是一个已知的错误,将在 2010 年 12 月的版本中修复。我在 0.94.51023.0 中仍然看到这个问题。这是回归还是该错误从未得到修复?
谢谢
This question was originally asked here: http://social.msdn.microsoft.com/Forums/en-US/pex/thread/60972f1f-735a-474e-be84-40cda8006ffa?prof=required.
I've recently installed Moles for VS2010. I have assembly that has same classes (same name) but under different namespace. Moles is resolving this by generating for example MClassName and MClassName01 for those classes. This works locally fine. But when someone else gets latest version, moles are regenerated and what has been MClassName becomes MClassName01 and what has been MClassName01 becomes MClassName, due to which build fails until all unit tests are fixed again. Which is unacceptable to be done on each time when someone gets latest version. Please suggest solution.
The answer at the time was that it was a known bug that would be fixed in a release in December 2010. I'm still seeing this issue in 0.94.51023.0. Is this a regression or was the bug never fixed?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论