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

If you get this error trying to build your Silverlight application in TeamBuild: C:\Program Files (x86)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed, and you know that you have it installed on your build machine, don’t panic.  There is an easy solution to this:

Go to your build definition, select the “Process” tab, and under “Advanced” change the value for MSBuild platform from “Auto” to X86

image

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”.

This will turn your build from image  to image

About esteban

Esteban is the Founder and Chief Technologist at Nebbia Technology, an ALM consulting and Azure-powered technology company. He is a software developer with a passion for ALM, TFS, Azure, and software development best practices. Esteban is a Microsoft Visual Studio ALM MVP and ALM Ranger, Pluralsight author, and the president of ONETUG (Orlando .NET User Group).

2 thoughts on “I’m on Radio TFS # 103!

  1. Renato Bento

    Thank you,
    this really helped me out!
    I was on a hard path trying to parse this parameters as a XmlDoc.

  2. Jorge Sanchez

    Hey I being using your code to accomplish the same thing but I never work with TFS before, I think I got it to the part that I could pass the ProjectFilePath and NewAssemblyName, but I not sure how to pass the Workspace InArgument do you have an example of how do I specify this on MsBuild?

    BTW i also change

    var workspace = context.GetValue(this.Workspace);
    to
    var workspace = (Workspace)context.GetValue(Workspace);

    is this correct?

    Thank you very much


Leave a Reply

Your email address will not be published. Required fields are marked *

Are you human? *