开发者

HELP. Pex killed my projects and GAC

开发者 https://www.devze.com 2023-03-02 22:32 出处:网络
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 th

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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号