Jan 21, 2013 at 8:53 PM
Edited Jan 21, 2013 at 9:01 PM
I can’t seem to find any good information on the use of the UndoCheckout task
action for MSBuild.ExtensionPack.VisualStudio.TfsSource. My (perhaps naïve)
impression is that this is similar to a tf undo, where I can undo the checkout
of a file in TFS.
Here’s my target:
<MSBuild.ExtensionPack.VisualStudio.TfsSource TaskAction="UndoCheckout" ItemPath="$(MyBinaryPath)" Version="2010" WorkingDirectory="$(MySolutionRoot)"/>
It runs, but throws an error. Here’s the error I get back:
0 error(s), 2 warning(s) $/GrandCentral/AppDev/Dev/Shared/TeamBuildScripts/TFSCheckin.proj - 0 error(s), 2 warning(s), View Log File
D:\TfsBuild\Builds\210\Sources\TeamBuildScripts\UndoCheckOut.proj (12): Exit Code 1. Partial success: No pending changes were found for $/GrandCentral/AppDev/Dev/Shared/_MTDependencies/GCBaseClasses.
D:\TfsBuild\Builds\210\Sources\TeamBuildScripts\TFSCheckin.proj (42): Exit Code 1. Partial success: The item $/GrandCentral/AppDev/Dev/Shared/_MTDependencies/GCBaseClasses/EpsiBase.dll is locked for check-out by jroth in workspace TX-LT13142.
Obviously, no file checkouts are undone. That file (EpsiBase.dll) is one I’ve checked out on my
workstation for testing purposes. Do I need to “GetPendingChanges,” and somehow use some sort
of return value to iterate over pending changes and undo them, or am I just barking up the