Migrate Problem with Composite + Unity 2

Apr 29, 2010 at 11:43 PM
I go this Error in my Bootstrapper The non-generic method 'Microsoft.Practices.Unity.IUnityContainer.RegisterType(System.Type, System.Type, string, Microsoft.Practices.Unity.LifetimeManager, params Microsoft.Practices.Unity.InjectionMember[])' cannot be used with type arguments The weird is that i dont have the overloads options of this function. Im using CompositeWPF-42969 - V4 Builds What am i doing Wrong?
Apr 30, 2010 at 9:40 AM

In Unity 2 many of the IUnityContainer methods have been moved out to be extension methods so you need to add the namespace 'Microsoft.Practices.Unity' in order to use them.  See this post for more info:

http://unity.codeplex.com/Thread/View.aspx?ThreadId=199361

 

Apr 30, 2010 at 4:17 PM
That Solves the problem. Thanks metaman.