In VS2012, MSBuild.ExtensionPack.VisualStudio.TfsSource throws exception on checkout

Dec 12, 2013 at 10:02 AM
We recently upgraded our TFS server from 2010 to 2012.

Since the upgrade, one of my existing build is now throwing "Win32Exception: The system cannot find the file specified"

<MSBuild.ExtensionPack.VisualStudio.TfsSource TaskAction="Checkout" ItemPath="$(BuildPasFile)" Version="2012" WorkingDirectory="$(ViewRoot)\Delphi\Source\acom"/>

The only change that I had to do as part of TFS upgrade is to change the Version from "2010" to "2012".

The exact command that gets fired is
tf.exe checkout "C:\Builds\Sources\Build..\Delphi\Source\acom\build.pas" /noprompt /recursive

I read the discussion on the following link:

As required, Environment variable for VS2012 is set to
VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\

I have verified that I am able to open / access the file using
Notepad.exe "C:\Builds\Sources\Build..\Delphi\Source\acom\build.pas"

I have also executed the TF.exe full command on the build server locally. It shows that tis Build.pas is open for edit.

$/Babylon Service Packs/Ananke/Delphi/Source/acom/build.pas:
opened for edit in 11_11_bal170099;builder
opened for edit in 11_12_P6PROFBLDAGENT1;builder
opened for edit in 11_2_p6profbldagent2;builder
opened for edit in 11_1_P6PROFBLDAGENT1;builder
opened for edit in 11_4_p6profbldagent3;builder

I am not sure, if the problem is due to multiple edits on the same file.

I am unable to resolve this Win32Exception.

Please let me know, if there is anything missing! What else do I need to check?

Please suggest!

Jatin N. Bhoir
Jan 14, 2014 at 1:48 PM

Is this still an issue?

Jan 16, 2014 at 10:22 AM
Not an issue anymore.

Marked as answer by mikeFourie on 1/16/2014 at 3:46 AM