|
Now that the Beta 1 of Silverlight has been released, I thought it is time to update the stuff that I used to develop and test these apps with Visual Studio 2008 Express (VSE). Some MS employee mentioned that the Express version of VS will support Silverlight in the future but at the moment the only approved way to develop Silverlight apps is with the standards edition of Visual Studio (or with Expression Blend). I have posted a couple of archives that included stuff that simplifies the development of Silverlight apps with the VSE. As far as I can tell, most of these still work with the Beta 1 release. The template projects has to be upgraded. In this note, I will describe the changes that are needed for a basic template project for a Silverlight application written in C#. If you prefer, you can just download the following, which contained the project template for Silverlight app with Visual C# 2008 Express. The project file now generates a .xap archives, so the following now appears in the <PropertyGroup> element of the project: <XapOutputs>true</XapOutputs> <XapFilename>SilverlightExpress2B1.xap</XapFilename> Because we deploy with a .xap archive, we need to add extra info for the Silverlight runtime: <SilverlightApplication>true</SilverlightApplication> <SilverlightAppEntry>SilverlightExpress2B1.App</SilverlightAppEntry> <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate> <GenerateSilverlightManifest>true</GenerateSilverlightManifest> And we can have a test page generated, so we can click the .html file in the ClientBin directory in order to check our application: <TestPageFileName>TestPage.html</TestPageFileName> <CreateTestPage>true</CreateTestPage> The reference assemblies name have changed from the previous release, so the newer elements looks as follow: <Reference Include="System.Windows" /> <Reference Include="mscorlib" /> <Reference Include="system" /> <Reference Include="System.Core" /> <Reference Include="System.Xml" /> <Reference Include="System.Windows.Browser" /> I have included the necessary files in the link above. |