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
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.
When the build definition comes up, click on the Process tab. You should see a screen that looks like the screen below.
Step 3: Expand Advanced and scroll down so you can see the MSBuild Platform section. Right now the value should be Auto.
Step 4: Change MSBuild Platform to x86.
Step 5: Type CTRL-S to save the changes to the build definition
Step 6: Re-run the build and now the build succeeds
-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