What’s new with Silverlight Tools Beta 2!

What’s new with Silverlight Tools Beta 2!

  • Comments 30

A number of great improvements and changes were made for Silverlight Tools Beta 2. The following list summaries some of the major changes with details on each below.

  1. WCF templates for Silverlight Enabled.
  2. Build configurations.
  3. XAML Validation now reports build errors.
  4. Setup Improvements.
  5. Projects created in Beta 1 are prompted for conversion when opening to Beta 2.
  6. Linking a Web Site to a Silverlight Application.

1. WCF Templates for Silverlight Enabled.

WCF templates are now enabled for Silverlight. If you want to add Web Services to your Silverlight application, this is the route to go. To do this, right click on your web site node in the Solution Explorer and choose “Add New Item”.

image

This will bring up the “Add New Item” dialog. Choose the template “Silverlight-enabled WCF Service”.

image

In order to add a reference from your Silverlight Application to the newly created service right click on your Silverlight application node in the Solution explorer and choose “Add Service Reference”.

image

From the “Add Service Reference” dialog click the “Discover” button and click the “OK” button after selecting your service.

image

2. Build Configurations.

For this release we enabled the Configuration Manager for Silverlight. This controls where your output is and allows you to have multiple XAP’s on your web site for debugging purpose versus the actual release. Note that you will need to change your Test Page source to point to the correct XAP if you make modifications in this dialog.

I.e from TestPage.aspx:

<asp:Silverlight ID="Xaml1" runat="server" Source="~/ClientBin/SilverlightApplication9.xap" MinimumVersion="2.0.30523" Width="100%" Height="100%" />

You can access this dialog from the menu bar of Visual Studio 2008 via Build | Configuration Manager…

image 

This will invoke the following dialog:

image

3. XAML Validation now reports build errors.

If your XAML has any errors we will now report them after you build.

4. Setup Improvements

Uninstalling previous versions is no longer necessary. However, if you install SP1 over Beta 2 you will need to re-install Beta 2 to update the patch. Also, our tools setup removes the Microsoft Blend March Preview. Microsoft Blend will be re-releasing around the same time as the release of our Beta 2 tools.

5. Projects created in beta 1 are prompted for conversion when opening to Beta 2.

Projects created in beta 1 are prompted for conversion when opening to Beta 2.

6. Linking a Web Site to a Silverlight Application.

For Beta 2 we removed the “Add Silverlight Link” option in favor of the following alternatives for adding a Silverlight Application to your Web Site.

Option #1: Adding a new Silverlight application to an existing Web Site.

On the web site node of your solution explorer, right click and choose “Add New Item”.

           image

This will bring up the “Add New Item” dialog. Choose “Silverlight Application”.

image

Click the “Add” button and this will bring up the final dialog. In this dialog, choose the language, location and name of the Silverlight application you wish to create and click “Add”.

image

In case you were wondering what the option for “Copy to configuration specific folders”, when checked, the output of your XAP will be copied to the configuration specific sub-folders of the target folder. This is useful if you don’t want Release and Debug builds to clobber each other. I.e.:

  • ClientBin\Debug\foo.xap
  • ClientBin\Release\foo.xap

Option #2: Adding an existing Silverlight application to an existing Web Site.

From your Solution explorer in your web site, right click and choose Add Existing Project:

image

Browse to and open an existing Silverlight application that you want to in this web site:

image

Now, to associate the web site with the Silverlight application you have two choices:

Choice #1: Once again right click on your web site and choose “Add New Item”

image

This will bring up the “Add New Item” dialog. Choose “Silverlight Application” and click the “Add” button.

image

This time you will see the option to use an existing project is enabled. Select this option and click the “Add” button.

image

Choice #2: Right click on your web site and choose “Property Pages”

image

This will bring up the Property Pages Dialog. From this dialog, Select “Silverlight Applications” and click the “Add” button.

image

This will bring up the following “Add Silverlight Application dialog”. Chose the first option to use an existing Silverlight project, click “Add” and you are done!

image

Let me know if you have any questions related to Silverlight Tooling for Beta 2.

Thank you.

Mike Snow
SDET Lead 
Visual Studio Web Tools

Leave a Comment
  • Please add 8 and 8 and type the answer here:
  • Post
  • PingBack from http://www.basketballs-sports.info/basketball-chat/?p=1610

  • And where might these tools be? :)

  • No, its not out yet (as far as I can tell). Mike Snow of the Visual Studio Web Tools team posted a nice list of the changes that are in the Silverlight 2 Beta 2 Tools for Visual Studio 2008 (phew, long name!). I recommend reading his entire post. Here

  • There's something funky about the Add Existing Silverlight Application process.  The box is greyed out even if you already have an existing Silverlight application in the solution.

  • A lot of people are waiting expectantly for the release of beta 2 of Silverlight 2.0. Dave, for instance

  • Hi,

    Thanks for the post.

    Any changes made to the port numbers that Silverlight support? In beta 1, it supported port from 4502-4532.

    Also, have there been any changes with regards to calling any method asynchronously (I may not be aware of one)

    Thanks.

  • Good point - the location to these tools is ........???

  • Thanks for the entry, added to my post here: http://arstechnica.com/journals/microsoft.ars/2008/06/06/silverlight-2-beta-2-arrives-on-time-available-now

  • 미리 예고된대로 Silvelright 2 베타 2 다운로드가 공개되었습니다. 다음의 링크로 직접 가셔서 설치하실 수 있습니다: Microsoft Silverlight Light Up

  • Silverlight 2 Beta 2 has just been released! Checkout http://silverlight.net/GetStarted/ &#160; Silverlight

  • by Don Burnett Microsoft has released the June Preview of Expression Studio's Blend program. The best

  • it's a useful article.i submitted it on some social bookmarking sites like dig with andra (http://www.codeplex.xom/andra).

  • Silverlight 2 Beta 2 is Now Available

  • Silverlight 2 Software Development Kit Beta 2 is Now Available

  • Αρκετές μεγάλες βελτιώσεις έχουν γίνει στην έκδοση Silverlight Tools Beta 2. Η ακόλουθη λίστα παρουσιάσει

Page 1 of 2 (30 items) 12