Wednesday 21 September 2011

VS2008 SP1 may break the Team Foundation Build

Installed VS2008 SP1 on a build server where there was Team Build Agent installed. Started to receive the following error when running the build:


C:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild\Microsoft.TeamFoundation.Build.targets(300,15): error MSB4131: The "Reason" parameter is not supported by the "GetBuildProperties" task. Verify the parameter exists on the task, and it is a gettable public instance property.

The reason was that the Tasks assembly was not updated - it is located here:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PrivateAssemblies\Microsoft.TeamFoundation.Build.Tasks.dll along with some other dlls. For SP1, its version should be 9.0.30729.1, modified in 2008, while in my case it was some lower version.

The solution is to install Team Foundation Server 2008 SP1, which is 133 megs and can be downloaded from here: Team Foundation Server 2008 Service Pack 1 (SP1)

No comments:

Post a Comment