tfs-2012

editing build templates in vs2017

  1. Invoke Process does not by default exist in the Toolbox when editing a TFS 2012 build template in VS2017.
  2. 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
  3. 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.