Silverlite: What to do if your XAML changes do not display

This is the first in a series I’m calling the “Silverlite” series, posts covering issues I encounter working with Silverlight 2.0.  I hope to work with Silverlight for a long time, so hopefully the series will be around for a long time, too.

Tonight’s Silverlite looks at what to do if XAML file changes you make aren’t being updated when you debug your project in Visual Studio or refresh your site XAP file. 

When a new SilverLight 2.0 project is created in VS2008, a Web Project is created to house the Silverlight project control as shown below.

The web project page contains the control in its \ClientBin\.XAP file, but a fresh compile (or F5 to Debug) isn’t going to force a reload of the XAML.  A fresh XAML WILL occur if you touch the web.config, however.  So remember to touch your web.config if your XAML changes aren’t displaying.

Article written by

A long time developer, I was an early adopter of Linux in the mid-90's for a few years until I entered corporate environments and worked with Microsoft technologies like ASP, then .NET. In 2008 I released Sueetie, an Online Community Platform built in .NET. In late 2012 I returned to my Linux roots and locked in on Java development. Much of my work is available on GitHub.