c# - Moles and System.Windows.Forms -


I am trying to mall for the first time when I try to add a mall assembly to the system. It generates code with reference to the system. Colllections.Generic.IReadOnlyCollection and IReadOnlyList which do not compile because they are only in the .NET Framework 4.5 and all of my projects are 4.0 VS2010. I have set assembly references for specific editions but no help from this helped?

If you are running Moles in Visual Studio 2012, then you must explicitly exclude certain assemblies

This works for me:

  & lt; Assembly name = "System.Windows.Forms" ReflectionOnly = "true" /> & Lt; StubGeneration & gt; & Lt; Type & gt; & Lt; Clear / & gt; & Lt; Add Full Name = "Your. Type.Full.Name!" / & Gt; & Lt; / Type & gt; & Lt; / StubGeneration & gt; & Lt; MoleGeneration & gt; & Lt; Type & gt; & Lt; Clear / & gt; & Lt; Add Full Name = "Your. Type.Full.Name!" / & Gt; & Lt; / Type & gt; & Lt; / MoleGeneration & gt;    

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -