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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -