Silverlight 1.0 project template for VS 2008

If you're like me and enjoying Visual Studio 2008 Beta 2, you may notice that the Silverlight templates included with the Silverlight Tools for VS2008 are focused on the 1.1 alpha.  This is great, but what if you dig Silverlight 1.0 and still want to use the latest and greatest from Visual Studio land?

You're in luck!  All you have to do is borrow the project template from the Silverlight 1.0 SDK.  If you have already installed Visual Studio 2005 then you can install the SDK and find the project template via the file path below:

...\Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual C#\Silverlight\SilverlightJSApplication.zip

If you're not running Visual Studio, I've posted the template on my server, so you can download the template directly.

Once you have your hands on the template, copy the .zip file into the template directory for VS2008:

...\Documents\Visual Studio 2008\Templates\ProjectTemplates\Visual C#

Now when you add a New Project you should see a "Silverlight Javascript Application" option below My Templates, which is pictured below.

posted on Sep 24th, 2007 | Permalink | Comments (5)

5 Comments »

  1. Cheers!

    I just installed VS2008 with the newest tools and Silverlight 1.1 Alpha runtime, but realized I want to start from Silverlight 1.0 and this was an issue, since VS2008 only has Silverlight 1.1 template as default. This was very helpful

    Comment by Masi Malmi - January 04, 2008 @ 9:21 AM
  2. It's me again :D

    After some testing I noticed a couple of issues when working with the "Silverlight Javascript Application" project in Visual Studio 2008.

    First of, the VS2008's visual designer doesn't support the XAML file design view, but you can get around this by viewing it through Blend (I have Expression Blend 2 December Preview).

    Maybe more troublesome is the debugging of Silverlight 1.0 project in VS2008. When debug is started, VS2008 wants to create a new web.config file. Fine. But I made a simple test of debugging with the default example (a button control, which has a MouseUp -event, when triggered alert box says 'clicked'). I placed a breakpoint where it had mouseUpAnimation.begin(); in the function, but when I press the button in IE it simply executes and gives the alert, whereas it should through me back to VS2008 and halt the execution. I was wondering if you had a solution as to why the debugging isn't working in IE? Is it a bug with Silverlight 1.1 Alpha runtime, which I have installed?

    thanks

    Comment by Masi Malmi - January 04, 2008 @ 10:35 AM
  3. Hmm, make sure you have "Disable script debugging (Internet Explorer)" unchecked on the Internet Options -> Advanced tab.

    Comment by Adam Kinney - January 04, 2008 @ 4:38 PM
  4. Yup, I had it disabled.

    I figured it out. I didn't have IE as my default browser (it was firefox), and that somehow messed things up even if I changed the default browser in Visual Studio. So I went to IE's Options -> Programs -> Make Default.

    Debugging works fine now :)

    Comment by Masi Malmi - January 05, 2008 @ 6:58 AM
  5. Thanks, Very helpful. Just got VS2008 up and running, but I need to work on SL1.0 projects. Saved me some time.

    Appreciate it!
    - Ryan

    Comment by discorax - January 14, 2008 @ 9:36 AM

Leave a comment