editing build templates in vs2017
Invoke Processdoes not by default exist in the
Toolboxwhen editing a TFS 2012 build template in VS2017.
- It can be added right-clicking the
Toolbox> Choose items > System.Activities Components > Browse >
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Microsoft.TeamFoundation.Build.Workflow.dll
- The previous step will then fail with the following:
Could not load file or assembly ‘LibGit2Sharp.GitServer, Version=126.96.36.199, Culture-neutral, PublicKeyToken-b03f5f711d50a3a’ or one of its dependencies. The system cannot find the file specified.
This is because VS2017 ships with the wrong version of
I found this dll in a VS2015 install under
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\rumwu2i3.5ko\Microsoft.TeamFoundation.Build.Workflow.dll.
Adding this in VS2017 still doesn’t allow adding of
Invoke Process tasks to workflows, and eventually the task disappears from the toolbox too.
Workaround for now is to use VS2015 which already has the task evident in toolbox.
git-tfs bridge broken because workspace already in use
The working folder c:\myPath.git~w is already in use by the workspace git-tfs-17b6289f-b652-4170-a5c4-aaa570ec844f;LastName, FirstName on computer HOSTNAME.
tf workspaces /collection:http://tfsserver:8080/tfs/collection_name /owner:domain\username
tf workspace /delete git-tfs-17b6289f-b652-4170-a5c4-aaa570ec844f;domain\username /collection:http://tfsserver:8080/tfs/collection_name