TFS Checkout task Issue

Oct 14, 2009 at 2:24 AM

I am seeing the following error in the build log. I am not sure why I am getting the Win32Exception and what does the error mean.

Task "MSBuild.ExtensionPack.VisualStudio.TfsSource"
  Resolve TF.exe path
  Unable to resolve TF.exe path. Assuming it is in the PATH environment variable.
  TF Operation: Checkout
  Executing tf.exe checkout "$/Test/WebApplication2/WebApplication2/Properties/AssemblyInfo.cs"  /noprompt /recursive
C:\Documents and Settings\tfsservice\Local Settings\Temp\Test\WebApplication2\BuildType\TFSBuild.proj(256,5): error : Win32Exception: The system cannot find the file specified
C:\Documents and Settings\tfsservice\Local Settings\Temp\Test\WebApplication2\BuildType\TFSBuild.proj(256,5): error :

Coordinator
Oct 20, 2009 at 1:30 PM

Hi

the problem is that you are using a server path. $/Test/WebApplication2/WebApplication2/Properties/AssemblyInfo.cs

You should use a local path and the task should execute within the respective workspace, e.g.

<MSBuild.ExtensionPack.VisualStudio.TfsSource TaskAction="Checkout" ItemPath="C:\projects\SpeedCMMI\Demo1" Version="2008" WorkingDirectory="C:\projects\SpeedCMMI"/>

 

Mike