Unity 3.0 for .Net 4.0?

Oct 11, 2013 at 7:39 PM
We would like to make use of the latest 3.0 release but are unfortunately tied to .Net 4.0 for a lengthy amount of time. Is there a 4.0 compatible build?
Oct 13, 2013 at 6:18 AM
Unity 3 only targets .NET 4.5 because it uses some new .NET 4.5 features (e.g. new TypeInfo class. Unfortunately, there is no .NET 4.0 compatible build.

Randy Levy
Enterprise Library support engineer
Support How-to
Oct 24, 2013 at 1:04 AM
I was able to "port" it back to a 4.0 compile without too much trouble. I largely just faked the TypeInfo via an extension method have have all the unit tests passing.

With POSReady2009 support continuing for many years it would be beneficial to have a 4.0 supported release.

With some relatively mild #ifdefs I think the code base could support a cross version build and help Unity stand up better against choices like Castle which are cross compiling for a number of runtimes. Is this something that could be folded back in?
Jan 8, 2014 at 6:11 PM
Hello jlongino,

does your fake of the TypeInfo worked? Can you make your fake Public ?

Thx Matthias