Unity 3.0 Preview for .NET 4.5 is released

Unity has become a popular DI container with a solid base of users (last time I checked, there were 300K+ cumulative downloads of the Unity container through all channels – MSDN, Codeplex, and NuGet). Unity runs in the heart of Microsoft Exchange and Bing and many other systems. For all of you Unity fans and enthusiasts building Metro style apps for Windows 8 Developer Preview, we have ported the Unity dependency injection container to .NET 4.5 framework.

The major changes include:

  • Unity projects updated to target .NET 4.5
  • Dynamic build plans modified to use compiled lambda expressions instead of Reflection.Emit
  • Converting reflection to use the new TypeInfo for reflection.
  • Projects updated to work with the Microsoft Visual Studio 2011 Preview.

Notes/Known Issues:

  • The Microsoft.Practices.Unity.UnityServiceLocator class cannot be used under the WinRT profile because the CommonServiceLocator cannot be used under the WinRT profile currently.
  • Only the core Unity libraries will work with the WinRT profile.  The Unity.Configuration, Unity.Interception, and Unity.Interception.Configuration assemblies will not work under the WinRT profile.
  • We removed the Silverlight versions for this preview.
  • Only unit tests from the Unity 2.1 suite have been verified. Full scale testing is to be done for the final release.
  • The preview release refers to the Unity 2.x documentation set.

 

For more information please check team blog