Unity 3.0.1026.0 Preview for .NET 4.5 Framework Released

The Unity 3.0.1026.0 Preview released today enables Unity to work on .NET 4.5 with both the WinRT and desktop profiles."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 […]

The Unity 3.0.1026.0 Preview released today enables Unity to work on .NET 4.5 with both the WinRT and desktop profiles.

Microsoft patterns & practices - Logo"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've ported the Unity dependency injection container to .NET 4.5 framework," stated Microsoft.

The major changes in Unity 3.0.1026.0 Preview 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.

You can get the Unity 3.0 Preview from Codeplex.