64-Bit Team Build Fails on Silverlight Projects (and How to Fix It)

If you have a Silverlight project under source control, and try to build it on a 64-bit Team Build (or similar) server, you may encounter the following error: After checking the immediately obvious (i.e. is the SDK installed), you might wonder why this is happening.  It has to do with the build running under 64-bit…

4

MSBuilding Web Site Projects doesn’t Copy Silverlight XAP (and How to Fix It)

If you have a Silverlight application that is consumed by a Web Site Project in Visual Studio (not to be confused with a Web Application Project), and you use msbuild on your solution, you may find that the XAP file is not copied to the website.  This will also happen if your solution is building…

2

Refactoring Root namespace Breaks Silverlight Applications (and How to Fix It)

One scenario that happens fairly often for new apps is to create a new project and then part way through decide you want to rename it, or at least the default namespace.  With Silverlight apps, when you do this and try to run your project, you’ll see an error: Line: 56Error: Unhandled Error in Silverlight…

3

Silverlight 3 Support in VS2010 Beta 2

This evening I put up a blog post on my team’s blog to summarize some of the changes that have come in the Beta 2 release of VS2010 with regards to Silverlight development.  Check it out and leave any feedback. If you’re trying out the new beta, please give feedback and tell us what you…


Silverlight Tools 2 Issue: Hosting Pages Broken from Beta 2 to RTW

A fair number of people are having issues with the ASP.NET control used to host Silverlight applications ceasing to work when they upgrade from Silverlight Beta 2 to Silverlight 2 RTW.  If the HTML page is also broken, the first thing to check is that the HTML markup is correct, since the MIME types have…

1

Silverlight Tools Tip: How to customize the default Hosting Web Project Choices for Silverlight Applications

Currently in Silverlight Tools Beta 2, by default when you create a new Silverlight Application, Web Site is the default project type for hosting the Silverlight app, and Web Applications are the only other option.  However, you might either prefer to use a custom web project template, or maybe just want Web Applications to be…

3

Silverlight Tip: Reflecting Objects Horizontally or Vertically using ScaleTransform

While working on a Silverlight application, I wanted to have two instances of a class which faced each other.  After exploring the available transforms, I eventually remembered how to do it simply by scaling the object in a negative direction. First, we need an object to reflect.  You can reflect any control this way, be…

1