Monday, April 23, 2012

TFS Build Error - Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed.

PROBLEM:
You get an error: "C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v5.0\Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed"

SOLUTION:
If you get this error trying to build your Silverlight application in TeamBuild and you know that you have it installed on your build machine, go to your build definition, select the “Process” tab, and under “Advanced” change the value for MSBuild platform from “Auto” to X86.

This happens when you are running your builds on a 64-bit build server.  The reason for this is that the Silverlight SDK seems to have trouble compiling under a 64-bit environment, and your 64-bit build server will try to use those settings when you set it to “Auto”.


If you find this solution useful, you are welcome to press one of the ads in this page.. Thanks!

20 comments:

  1. thanks this help me with my build definition

    ReplyDelete
  2. Nice one. I clicked all your ads :)

    ReplyDelete