Azure DevOps, Scrum, & .NET Software Leadership and Consulting Services

Introducing Slide Speaker: Videos with Voice-over from your PowerPoint and Google Slides Presentations

TFS2010 Build failed — “Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed”


I ran in to a problem trying to compile a Silverlight 4 project with Team Foundation Server 2010 and Team Build.  I ran the build and got the error:

C:Program Files (x86)MSBuildMicrosoftSilverlightv4.0Microsoft.Silverlight.Common.targets (104): The Silverlight 4 SDK is not installed

image

I found Andru’s blog post with a solution for this in Silverlight 3.0 where he says

Fortunately, I found a MUCH BETTER workaround for TFS 2010, wich only involves changing the configuration of the build definition and set the “MSBuild Platform” to “X86” (it was “Auto” before).

The only thing he was missing was a few screenshots saying how to actually change the MSBuild Platform. 

Step 1: Open Team Explorer

Step 2: Right-click the build definition and choose Edit Build Definition.

image

When the build definition comes up, click on the Process tab.  You should see a screen that looks like the screen below.

image

Step 3: Expand Advanced and scroll down so you can see the MSBuild Platform section.  Right now the value should be Auto.

image

Step 4: Change MSBuild Platform to x86.

image

Step 5: Type CTRL-S to save the changes to the build definition

Step 6: Re-run the build and now the build succeeds

image

-Ben

 

— Want help using, configuring, or migrating to Team Foundation Server 2008 or Team Foundation Server 2010?  Need help with automated QA testing with Visual Studio 2010 Ultimate Edition?  Interested in the new Professional Scrum Developer TFS2010 course?  Drop us a line: info@benday.com

SUBSCRIBE TO THE BLOG


Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.