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

sql - Return Function using Cursor -

javascript - Is there any way to add a new parameter to a function programmatically? -

sql server - How to use pivot in this table -