| HOWTO: Silverlight and Visual Studio Express |
|
|
|
|
At the moment (i.e. end of March 08), MS doesn't provide a way to develop and test Silverlight applications with the free edition of Visual Studio (Visual Studio Express). I have posted a few downloads that help with this situation. In this entry, I would like to provide instructions on how you can go around the limitations of the current version of VS (Visual Studio Express 2008), in order to test and develop Silverlight 2.0 Beta 1 applications. I like the "Image Snipper" sample on the following web page: If you choose to download the sample and try to open the project in VSE, you'll get an error message like "The project type is not supported by this installation" (or something similar). In order to be able to open the project in VSE, you can do the following: Open the .csproj file in notepad and remove the elements <ProductVersion.../> and <ProjectTypeGuids... /> in the first <PropertyGroup> section and save it. Now, if you try to open the project in VSE, it should open correctly. But if you try to build it (i.e. F6), you'll get some errors. That's because VSE doesn't know about Silverlight. You can download the archive from my previous entry and copy the four files with names starting with Microsoft.* into the directory C:\Program Files\MSBuild\Microsoft\Silverlight\v2.0 on your machine. I have extracted these files from the download for Visual Studio. Now VSE knows how to build Silverlight applications. So if you try to build the project again, it should build successfully. You can go to the subdir ClientBin and double-click the testpage.html file. A page in your browser should open and load the "Image Snipper" sample. In order to create your own Silverlight template project, you can delete most of the files in this project and use "Export Template..." from the File menu. After completing this step, you'll have a basic template to create Silverlight applications in the Express Edition. I have included such a template in my previous download, mentioned above. I suppose you can do the same for VB, if you start with a Silverlight 2.0 Beta 1 application for which you have a .vbproj file.
|
| Next > |
|---|














