tfs-2012
editing build templates in vs2017
Invoke Process
does not by default exist in theToolbox
when 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=14.0.0.0, 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 Microsoft.TeamFoundation.Build.Workflow.dl
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.
List workspaces
tf workspaces /collection:http://tfsserver:8080/tfs/collection_name /owner:domain\username
Delete workspace
tf workspace /delete git-tfs-17b6289f-b652-4170-a5c4-aaa570ec844f;domain\username /collection:http://tfsserver:8080/tfs/collection_name