Welcome to MSDN Blogs Sign in | Join | Help

Silverlight Tips of the Day

General tips of Silverlight including but limited to game programming tips. Also, general Silverlight news and announcements.
Silverlight Tip of the Day #26: How to Change the Output XAP File Name.

Don’t like the default name given to your XAP file? Good news! You can change it but there are two steps you will need to take.

Step #1. Right click on your Silverlight application node in the solutions explorer and choose “Properties”.

image  

Choose the Silverlight tab (default tab opened) and where it says Xap file name enter the new name of the XAP file you want to use.

image

Step #2. Open up the web page that hosts this Silverlight control. In my case, Tip26TestPage.aspx. Change the Source to point to the new name of the XAP.

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

That’s it, you can now build and run your application under the new XAP file name.

Thank you,
--Mike Snow

 Subscribe in a reader

Posted: Wednesday, January 14, 2009 10:27 PM by msnow

Comments

Christopher Steen said:

Link Listing - January 15, 2009

# January 16, 2009 12:38 AM

Christopher Steen said:

ASP.NET Time released content in ASP.NET [Via: Jon Galloway ] Code Camps Roanoke Code Camp 09 - Call...

# January 16, 2009 12:38 AM
Anonymous comments are disabled
Page view tracker