Backing up a TFS definition / Visual Studio Online

Is there a way to get the VSO build definition file so that it can be copied / added to the original control?

I saw this question, but tfpt doesn't support VSO connection (maybe I'm doing something wrong?)

tfpt builddefinition /dump <myproj> /collection:https://<myorg>.visualstudio.com/

TF31002: Unable to connect to this Team Foundation Server: https://<myorg>.visualstudio.com/

      

Thanks in advance.

+3


source to share


1 answer


Thanks to jessehouwing and some subsequent web searches, the following works:

tfpt builddefinition /dump "<projName>\<buildDefName>" /collection:https://<myOrg>.visualstudio.com/defaultcollection /filepath:<pathToBackup>

      

If you get this error:

Could not load file or assembly 'Microsoft.TeamFoundation.Build.Workflow, Version=12.0.0.0, Culture=neutral, PublicKeyTo
ken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

      

You need to copy Microsoft.TeamFoundation.Build.Workflow.dll from



C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies

      

to

C:\Program Files (x86)\Microsoft Team Foundation Server 2013 Power Tools

      

(thanks to http://blogs.ripple-rock.com/richarderwin/2014/09/11/CompareTFSBuildDefinitions.aspx )

+4


source







All Articles