I’ve been helping my customer setting up .Net 4.0 build servers lately as you may have read in my previous post. In the previous post, I listed my challenges getting .Net 4 assemblies to build and unit test with Team Build 2008 so I thought It would be time to share the correct order to get the stuff working!
- Install Visual Studio 2010 Premium
- Install Visual Studio Team System 2008 Development Edition
- Install Visual Studio Team System 2008 Service Pack 1
- Install Team Build 2008
- Install Team Build Service Pack 1
- Configured Team Build 2008 to use MSBuild 4.0 instead of MSBuild 3.5. To do this edit %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\TFSBuildService.exe.config and set the MSBuildPath property to C:\Windows\Microsoft.NET\Framework\v4.0.21006\
That should do it! And if you install your build server in that order you won’t get the following error:
- MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Build
- And you won’t replace the Microsoft.TeamFoundation.Build.targets with an incorrect workspace pattern:
TFS Build 2008:
After VS 2010 installation:
Hope this summarizes how to install a build server that builds and unit tests .Net 4.0 applications with Team Build 2008.