Our division’s primary Team Foundation Server is running TFS 2008 and as such we’re using Team Build 2008. This week I wanted to set up a Team Build 2008 definition to build a .NET 4.0 Silverlight application and this post explains how to do that.
Please note that this is a build agent-wide setting and ALL build definitions built by that build agent will use MSBuild 4.0. This typically isn’t an issue because MSBuild has good backwards compatibility but you should be aware of this.
That’s all there is to it… So far I’ve only built a single .NET 4.0 Silverlight application but this technique should work for all .NET 4.0 applications.
[Edit] Added step 4 to restart the service.
[Edit] Added missing "v" in framework path.