Prism QuickStart solution doesn't compile with last build

Topics: Prism v2 - Silverlight 3
May 11, 2010 at 8:01 PM


I created a QuickStart solution from the VS template, and replaced all prism references to the last build. 

I'm using VS 2010 et SL 4.

When compiling, I get the following error:

The non-generic method 'Microsoft.Practices.Unity.IUnityContainer.Resolve(System.Type, string, params Microsoft.Practices.Unity.ResolverOverride[])' cannot be used with type arguments

What's wrong?


(by the way, in the Tags options, can you add SL 4?)

May 12, 2010 at 5:06 PM

Hi Marcos,

Assuming you are using the template from David Hill’s blog post, the error is thrown because the generic methods for IUnityContainer are now extension methods, as explained in this thread.

Additionally, as the number of questions regarding Silverlight 4 and WPF 4 specifically has been rising, we’ve decided to include new tags for those versions. Thanks for your suggestion.

I hope you find this helpful.

Guido Leandro Maliandi