Por si alguien lo necesita como yo… estaba utilizando Silverlight 3, y tratando de modularizarlo con Prism
Abro el ejemplo que viene con Prism (para ver la implementación) que es el proyecto HelloWorld.Silverlight
{Carpeta de instalación de Prism}\Quickstarts\Hello World\HelloWorld.Silverlight\HelloWorld.Silverlight.sln
y resulta que faltaba la referencia a un assembly: System.Web.Silverlight
Porque utiliza el webcontrol Silverlight (que venia con el SDK 2.0)
…en Silverlight 3 todo es con el archiconocido tag object
Pero si queremos seguir utilizando esta librería? donde la obtenemos?
Where’s Wally? System.Web.Silverlight?
Este assembly se encuentra en el Silverlight SDK, pero la versión 2.0, y yo utilizo la 3.0
Lo que siempre me confunde es saber donde esta cuando es un SDK o cuando es una Tools?
Pero resulta que tenia todos estos en mi carpeta de Silverlight:
- Microsoft Silverlight 2 Software Development Kit (silverlight_sdk.exe | version 2.0 | 13/Octubre/2009)
Microsoft Silverlight 3 SDK Beta 1 (silverlight_sdk.exe | version 3.0 | 16/Marzo/2009) - Microsoft Silverlight 3 Tools for Visual Studio 2008 SP1 (Silverlight3_Tools.exe | version 30730.126| )
- Microsoft Silverlight 3 SDK (silverlight_sdk.exe | version 3.0 | 31/Agosto/2009)
Pero donde esta wally? en el SDK de la 2.0
Por estos link a documentos la explicación:
- La Liga Silverlight: Más novedades sobre Silverlight 3
http://blogs.ligasilverlight.com/?p=336 - (online) Ensuring That Your Silverlight 2 Applications Work with Silverlight 3
http://msdn.microsoft.com/en-us/library/cc645049(VS.95).aspx- 4.1 System.Web.Silverlight.dll has been removed from the Silverlight SDK
- 4.1 System.Web.Silverlight.dll has been removed from the Silverlight SDK
- (offline) En el documento Changes.docx
Ensuring That Your Silverlight 2 or Silverlight 3 Beta Applications Work with the Silverlight 3 Release
C:\Program Files\Microsoft SDKs\Silverlight\v3.0\SDK Help\en-US\Changes.docx- 4.1 System.Web.Silverlight.dll has been removed from the Silverlight SDK
- 4.1 System.Web.Silverlight.dll has been removed from the Silverlight SDK
from MSDN
(…) Developers creating new applications will want to use the latest templates that contain the OBJECT tag and other markup. Developers could add the System.Web.Silverlight assembly manually and use the server controls. However, these controls will not provide the latest installation logic, or be able to render iframes for Silverlight history support for example. (…)
Entonces… dos opciones:
- Desde un ejemplo obtenemos la librería (para compilar)
- Instalado las “Server Libraries” únicamente de Silverlight 2.0 SDK
OPCION 1: De un ejemplo obtenemos la librería
Aquí gracias a la La Liga Silverlight, en el post Más novedades sobre Silverlight 3 di con el proyecto:
- Code MSDN: ASP.NET Projects
ASP.NET Server Controls for Silverlight Samples
This samples release contains the ASP.NET server controls (Silverlight and MediaPlayer) that were shipped with the Silverlight 2 SDK
http://code.msdn.microsoft.com/aspnetprojects
Donde podremos descargar y compilar la libreria System.Web.Silverlight
OPCION 2: Instalado las “Server Libraries” únicamente de Silverlight 2.0 SDK
Instalado la versión Silverlight 2.0 SDK, pero solo las “Server Libraries”
ya alli “Found Wally”
En el ejemplo
Espero que les sirva de ayuda o guía.
Enlaces:
- Prism: Patterns & Practices Composite Application Guidance for WPF and Silverlight
http://prism.codeplex.com/ - Microsoft Silverlight 2 Software Development Kit
- Microsoft Silverlight 3 Tools para Visual Studio 2008 SP1
- ASP.NET Server Controls for Silverlight Samples
http://code.msdn.microsoft.com/aspnetprojects