Silverlight 4 101: Using Silverlight Assemblies in your non-Silverlight Projects

If you’re like me, you have been coding in .NET for a long time (for me, pre-version 1.0) and you have many libraries containing classes you would like to reuse in your Silverlight applications. However, if you try to reference a non-Silverlight assembly from a Silverlight project, you will get the following error message from Visual Studio: You can’t add a reference to <assembly name> as it was not built against the Silverlight runtime. Silverlight projects will only work with Silverlight assemblies. Although you can’t reference a non-Silverlight assembly from a Silverlight project, starting with Silverlight 4 and .NET 4, … Continue reading Silverlight 4 101: Using Silverlight Assemblies in your non-Silverlight Projects

Silverlight 4 101: Silverlight Project Templates

In Silverlight 4 with Visual Studio 2010, there are five Silverlight project templates to choose from. Here is a summary of each: Silverlight ApplicationCreates a blank Silverlight project. After selecting this template, a dialog appears asking you to specify whether you want to host the Silverlight application in a new Web site (either an ASP.NET Web Application Project, ASP.NET Web Site, or an ASP.NET MVC Web Project). You can also specify the Silverlight Version (based on the list of Silverlight SDKs installed on your machine), and whether you want to enable WCF RIA Services (discussed below). This template does not … Continue reading Silverlight 4 101: Silverlight Project Templates

Silverlight 4 101: Installing Silverlight

Microsoft releases new versions of Silverlight out of step with the release cycle for Visual Studio, so even if you have the latest updates for Visual Studio installed on your development machine, you still need to go to the Microsoft Silverlight site to download the latest Silverlight bits: http://www.silverlight.net To install Silverlight 4 on your VS 2010 development machine, you can download the installer from this link: http://www.microsoft.com/downloads/details.aspx?FamilyID=902a7539-c4b5-4e54-b4c9-1432daabe1e8&displaylang=en This installer includes the following components: – Silverlight 4 Developer Runtime – Silverlight 4 Update for Visual Studio 2010 and Visual Web Developer Express 2010 – Silverlight 4 SDK – Silverlight 4 … Continue reading Silverlight 4 101: Installing Silverlight