Quantcast
Channel: MSBuild Extension Pack
Viewing all articles
Browse latest Browse all 1211

New Post: UndoCheckout - HELP!!!

$
0
0

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:  

<Target Name="UndoCheckOut">
<MSBuild.ExtensionPack.VisualStudio.TfsSource TaskAction="UndoCheckout" ItemPath="$(MyBinaryPath)" Version="2010" WorkingDirectory="$(MySolutionRoot)"/>
</Target>

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
wrong tree?


Viewing all articles
Browse latest Browse all 1211

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>