I want to de-tour some method calls into the mscorlib assembly, so I tried to generate a Mole assembly for mscorlib. But it gives me thousands of errors.

I am using Win8+VS2010, VS2012 is installed on my box, too.

What I did is:

Step 0: Create an empty test project in VS2010.

Step 1: Right click the Reference and choose "Add Moles Assembly for mscorlib".

Step 2: Build the solution.

It gives me thousands of errors as below:

enter image description here

Any solution to this?

有帮助吗?

解决方案

Net 4.5 and moles don't like each other, see the following work around by Microsoft http://research.microsoft.com/en-us/projects/moles/molesdev11.aspx

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top