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)\MSBuild\Microsoft\Silverlight\v4.0\Microsoft.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

posted @ Tuesday, April 20, 2010 7:24 AM

Print

Comments on this entry:

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

Left by Prashant at 4/26/2010 6:46 PM
Gravatar
Great article, thank you, i was getting teh same error and this saved a lot of time for me...

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

Left by Wes MacDonald at 6/7/2010 11:54 AM
Gravatar
All we get from our x64 build agents is TF270015: 'MSBuild.exe' returned an unexpected exit code. Expected '0'; actual '9'.

Any ideas?

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

Left by Henry Lee at 8/10/2010 11:36 AM
Gravatar
You are a life saver. Thanks!

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

Left by Evgeniy Podolyak at 8/11/2010 5:51 AM
Gravatar
Thank you! You saved a lot of my time.

Your comment:



 (will not be displayed)


 
 
 
Please add 8 and 3 and type the answer here:
 

Live Comment Preview:

 
«September»
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789