views:

124

answers:

5

I am currently doing a silverlight application with Prism v2. But when I am adding the reference dlls two dlls are not recoganised.

Microsoft.Practices.ServiceLocation.dll &
Microsoft.Practices.Unity.dll

Can any one give a solution for this?

A: 

First, I'm pretty sure Prism was written for use with Silverlight 2.0 so you may encounter other problems. The CodePlex forum for Prism has several posts on the subject.

serialhobbyist
Prism V2 should be fully compatible with SL3.
Bryant
That's good news. I seem to recall there were a few issues around the time SL3 was out but maybe I misread the posts.
serialhobbyist
A: 

You need to reference the Silverlight versions of those two assemblies. You should be able to find them in the Reference Implementation.

Richard Szalay
+1  A: 

The best resource I've found on getting the Prism for Silverlight stuff up and running is this post on the Sparkling Client on downloading and building prism.

Follow that guide and it will give you the location of the correct Silverlight version of the dlls which is what you need as Richard points out.

Bryant
A: 

I am using Prism 2 on a Silverlight 3 project in Visual Studio 2010 beta 2 and it works fine. Check that you aren't mistakenly trying to use the wrong assemblies (the WPF ones maybe?)

Konamiman
+1  A: 

Hi,

There is a new version of Prism V2. You can download it from Microsoft site:

"New Composite Application Guidance for WPF and Silverlight 3.0 - October 2009 Released"

Get it here

Roberto Carzoglio