Question

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?

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top