Page view counter

Silverlight Tips of the Day - Blog by Mike Snow

Game Programming with Silverlight

Silverlight Tip of the Day #25: How to Build the XAP File to the Debug/Release Folders

By default when you build your Silverlight application you will notice the XAP file is placed in your web sites ClientBin folder:

image

This is regardless of whether you are building under Debug or Release configurations. In Visual Studio 2008 you can choose to build the XAP file to configuration specific folders.

To accomplish this, right click on your web site project node in the solution explorer and choose “Property Pages”.

image

From the Property Pages dialog, select “Silverlight Applications” in the left. Choose your project, and click “Change…” button.

image

Select Yes to the pop-up dialog.

image

If you now go back and build you will notice your XAP file is placed in the correct configuration folder.

Example for Release configuration:

image

Thank you,
--Mike Snow

 Subscribe in a reader

Comments

Microsoft Weblogs said:

By default when you build your Silverlight application you will notice the XAP file is placed in your

# August 14, 2008 2:20 PM

carnewsservice.info » Tip of the Day #25: How to Build the XAP File to the Debug/Release Folders said:

Pingback from  carnewsservice.info » Tip of the Day #25: How to Build the XAP File to the Debug/Release Folders

# August 14, 2008 2:41 PM

Visual Web Developer Team Blog said:

7 new Silverlight blogs have been completed. Check them out and let me know if you have any questions.

# August 14, 2008 2:51 PM

DotNetKicks.com said:

You've been kicked (a good thing) - Trackback from DotNetKicks.com

# August 14, 2008 3:27 PM

Community Blogs said:

SilverlightOnly Panorama Viewer, Alex Golesh on Isolated Storage, Mike Snow on moving the XAP, Changing

# August 15, 2008 2:16 AM

Dew Drop - August 15, 2008 | Alvin Ashcraft's Morning Dew said:

Pingback from  Dew Drop - August 15, 2008 | Alvin Ashcraft's Morning Dew

# August 15, 2008 9:43 AM

Silverlight news for August 15, 2008 said:

Pingback from  Silverlight news for August 15, 2008

# August 15, 2008 12:34 PM

Silverlight Tips of the Day - Blog by Mike Snow said:

The purpose of this post is to create an outline summary all the blogs from my Silverlight tips of the

# January 2, 2009 5:57 PM

o UAU nosso de cada dia said:

essa lista eu copiei desse blog bárbaro (acompanhe por RSS você também): uma lista de dicas super úteis

# January 3, 2009 6:25 AM

SteveReconG said:

on the client that references the clientbin are you programmatically determining the url then?

ie.

<param name="source" value="<%= Url.Content("~/ClientBin/YourXAP.xap")%>"/>

???

# February 23, 2009 12:16 PM

mike.snow said:

Your web page will find the XAP automatically in the debug/release folder.

# February 23, 2009 12:35 PM