有没有办法获取VSO构建定义文件,因此可以将其备份/添加到源代码管理中?
我见过this问题,但是tfpt似乎不支持与VSO的连接(也许我做错了什么?)
tfpt builddefinition /dump <myproj> /collection:https://<myorg>.visualstudio.com/
TF31002: Unable to connect to this Team Foundation Server: https://<myorg>.visualstudio.com/
提前致谢。
答案 0 :(得分:4)
感谢jessehouwing以及其他一些网络搜索,以下作品:
tfpt builddefinition /dump "<projName>\<buildDefName>" /collection:https://<myOrg>.visualstudio.com/defaultcollection /filepath:<pathToBackup>
如果您收到此错误:
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.
您需要从
复制 Microsoft.TeamFoundation.Build.Workflow.dllC:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PrivateAssemblies
到
C:\Program Files (x86)\Microsoft Team Foundation Server 2013 Power Tools
(感谢http://blogs.ripple-rock.com/richarderwin/2014/09/11/CompareTFSBuildDefinitions.aspx)