TFS.DevEnv task error

Mar 13, 2012 at 7:29 PM

I'm using TFS2010 and I'm trying to use the MSBuild activity to call a msbuild project that inturn calls the DevEnv task. When I run this, I get the following error:

Task "MSBuild.ExtensionPack.Tfs.DevEnv" (TaskId:4)

C:\Program Files\Invensys\DevTools\MSBuild\DevEnv.proj(18,7): error MSB4018: The "MSBuild.ExtensionPack.Tfs.DevEnv" task failed unexpectedly.

C:\Program Files\Invensys\DevTools\MSBuild\DevEnv.proj(18,7): error MSB4018: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.TeamFoundation.Build.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

C:\Program Files\Invensys\DevTools\MSBuild\DevEnv.proj(18,7): error MSB4018: File name: 'Microsoft.TeamFoundation.Build.Client, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'

I have v4.0.4 installed and I have set the version attribute on the DevEnv task to 10. Not quite sure why it is looking for v9 of the TFS assemblies. Can anyone help me resolve this.

Mar 15, 2012 at 6:49 PM

Figured this out. I need to use the "MSBuild.ExtensionPack.Tfs2010.DevEnv" task.