Question

I am having some issues with my machine actually generating moles assemblies. Every tutorial I have run into has simply said the following steps:

1) Install it.

2) Right click a reference and click "Add Moles Assembly".

Following these steps it should generate a ".moles" file and also the set of assemblies as well. My VS 2010 install generates the ".moles" file, but does not generate the assemblies (to my knowledge) at all-- or it just isn't adding them to the project file as a reference. I am thinking it could be a problem with my Windows 7 install since it is a company build and they tend to like to lock things down.

No correct solution

OTHER TIPS

Have you tried building your solution after you clicked "Add Moles Assembly"?

Maybe you need Administration Rights or a particular privelege? See this:

Missing Add Moles assembly

Run Visual Studio with Administrator permission...either through the command-line, or change the Properties of your shortcut.

http://social.msdn.microsoft.com/Forums/hu/pex/thread/364ac145-0c48-49e1-8ee8-fd549fee3184


UPDATE: For people that like to watch a short video on the steps needed to use Moles, see this:

http://channel9.msdn.com/Blogs/Peli/Moles-Replace-any-NET-method-with-a-delegate

Also keep in mind they have given Moles a new name ... Microsoft Fakes Isolation Framework

http://msdn.microsoft.com/en-us/library/hh549175(v=vs.110).aspx

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