Welcome to MSDN Blogs Sign in | Join | Help

Visual Web Developer Team Blog

Your official information source from the Visual Web Developer team.

News

  • These postings are provided "AS IS" with no warranties, and confer no rights. Use of included code samples are subject to the terms specified Terms of Use
What’s new with Silverlight Tools Beta 2!

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

Posted: Friday, June 06, 2008 7:59 PM by WebDevTools

Comments

trickyt said:

And where might these tools be? :)

# June 6, 2008 7:17 PM

JohnPapa.net said:

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

# June 6, 2008 8:55 PM

Jeff said:

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.

# June 6, 2008 9:07 PM

Community Blogs said:

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

# June 6, 2008 9:09 PM

Suprotim Agarwal said:

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.

# June 6, 2008 9:11 PM

Mick said:

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

# June 6, 2008 9:16 PM

Slimy said:

# June 6, 2008 9:54 PM

bkchung's WebLog said:

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

# June 7, 2008 1:45 AM

BradleyB's WebLog said:

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

# June 7, 2008 8:04 AM

Techniques said:

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

# June 7, 2008 8:06 AM

Mojtaba said:

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

# June 7, 2008 9:04 AM

beqiraj.net said:

Silverlight 2 Beta 2 is Now Available

# June 7, 2008 12:23 PM

beqiraj.net said:

Silverlight 2 Software Development Kit Beta 2 is Now Available

# June 7, 2008 2:40 PM

Ειδήσεις του dotNETZone.gr said:

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

# June 7, 2008 2:57 PM

Mirrored Blogs said:

Post: Approved at: Jun-7-2008 Start downloading! Silverlight Beta 2 Released! New features, more controls

# June 7, 2008 3:14 PM

Community Blogs said:

I&#39;ve got 17 links here tonight... Welcome to SL2B2.. :) ... Many are by the same folks, so I&#39;m

# June 7, 2008 10:47 PM

Pablo Peralta's Blog said:

Normal 0 21 false false false ES-UY X-NONE X-NONE /* Style Definitions */ table.MsoNormalTable {mso-style

# June 9, 2008 10:02 AM

karl said:

Is the full screen mode in Fire Fox been fixed with SL 2.  

# June 9, 2008 11:22 AM

BradleyB's WebLog said:

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

# June 9, 2008 11:39 AM

Technoeuphoria! said:

Not sure if it’s just me experiencing this but in the past, when you create your SL app first then decide

# June 10, 2008 1:02 AM

Zyma said:

Open Source Silverlight Chart Visifire is now compatible with Silverlight 2 Beta 2

# June 10, 2008 6:12 AM

Me about things... said:

After last week release of Silverlight 2 Beta 2, (SL2B2)&#160; I collected a small step-by-step guide

# June 10, 2008 9:35 AM

wahy said:

the installation is just a chain of chaos. I gave up and deinstall everything and will try to reinstall all over again.

# June 10, 2008 10:55 AM

WebDevTools said:

Suprotim - Ports are supported up to 4534 now. Thanks.

# June 10, 2008 12:49 PM

cnblogs.com said:

ASPX: 1.任何在Visual Studio平台上开发(人员)必不可少的工具。 http://msdn.microsoft.com/en-us/magazine/cc300778.aspx 2.一个新版本

# July 14, 2008 8:25 PM

beqiraj.net said:

Silverlight 2 Beta 2 is Now Available

# September 27, 2008 6:48 AM

Jocelyn said:

Not sure if it&rsquo;s just me experiencing this but in the past, when you create your SL app first then

# December 17, 2008 6:02 AM

jocelyn said:

Not sure if it&rsquo;s just me experiencing this but in the past, when you create your SL app first then

# January 6, 2009 7:16 AM

jocelyn said:

Not sure if it&rsquo;s just me experiencing this but in the past, when you create your SL app first then

# January 7, 2009 2:05 AM
New Comments to this post are disabled
Page view tracker