帮助。 Pex 扼杀了我的项目和 GAC
真的不知道这里发生了什么,但我在一个项目中使用 pex 和 moles,然后我让 pex 为 Web 客户端(即 MVC)生成测试。这导致了项目中的各种构建问题,因此我恢复了项目(使用 HG 进行源代码控制)。我仍然遇到所有相同的构建问题,其中包括缺少引用以及与缺少引用相关的其他错误。当我删除解决方案中的引用(例如 system.web.mvc 和 system.componentmodel.dataannotations),并尝试从 GAC 重新添加它们时,它们在 GAC 中不可见。我不明白 pex 是如何做到这一点的。现在我在 Visual Studio 中的所有项目都与 DataAnnotations、Mvc 和其他一些参考文献存在相同的问题?我对他们中的任何一个都无能为力。我还注意到所有指向 pex 论坛的链接似乎都已失效?
我认为我可以恢复我的大部分工作,因为它是一个虚拟机,而且我有一个不太旧的快照,而且我在保管箱外工作,因此可以取回我的所有源。我只是不明白这是怎么发生的,任何人有任何建议,同样性质的经历。我真的开始喜欢 pex 和痣,但这让我立刻感到厌烦。
Really not sure what's happened here, but I was playing with pex and moles in a project I then got pex to generate tests for the web client which is MVC. This caused all sorts of build problems in the project so I reverted the project back (source control using HG). I still got all the same build issues, which included references missing and other errors relating to the missing references. When I deleted the references in the solution, things like system.web.mvc and system.componentmodel.dataannotations, and tried to re-add them from GAC they are not visible in the GAC. I can't understand how pex can have done this. Now all of my projects in visual studio have the same issues with DataAnnotations, Mvc and a couple of other references? I can't do anything with any of them. I've also noticed that all the links to the pex forums seem to be dead?
I think I can recover most of my work as it's a VM and I have a snapshot that is not to old plus I work out of dropbox so can get all my source back. I just can't understand how this has happened any body have any advice, experiences of the same nature. I was really starting to enjoy pex and moles but this has put me right off.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
参数化单元测试宏似乎已从文件系统中删除了 System.Web.Mvc.dll 和 System.ComponentModel.DataAnnotations.dll。
您需要从另一台计算机获取程序集,然后手动将 System.Web.Mvc.dll 添加到 C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies 和 System.ComponentModel.DataAnnotation.dll分别为 C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\。
希望这对你有用。
It appears that the Parameterized Unit Test macro has deleted the System.Web.Mvc.dll and System.ComponentModel.DataAnnotations.dll from the file system.
You need to get the assemblies from another machine and manually add System.Web.Mvc.dll to C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET MVC 3\Assemblies and System.ComponentModel.DataAnnotation.dll to C:\Program Files\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\ respectively.
Hope that works out for you.