问题描述
前提:我认为这是TFS 2015中的错误/缺失功能
Premise: I think this is a bug/missing functionality in TFS 2015
当我使用TFS网站创建新的Build(非xaml)定义时,无法使用命令行TFSBuild start
命令来调用它.
When I create a new Build (non-xaml) definition using the TFS website, I am not able to call it using the command line TFSBuild start
command.
如果创建标准XAML定义,则可以使用命令行启动它.
If I create a standard XAML definition, I can start it using the command line.
您是否知道命令行无法启动新样式的定义?
Any idea if the command line is not able to start a new-style definition?
推荐答案
TFS Build vNext是2015年的一项全新功能.因此,我怀疑旧的API是否可以解决该问题(2015年之前可用).另一方面,tfsbuild.exe不太可能包含与新REST API一起使用的代码.我会说这是预期的行为.
The TFS Build vNext is an entirely new feature in 2015. Hence, I doubt that it can be addressed by the old API (available pre-2015). On the other hand, tfsbuild.exe is unlikely to contain the code to work with the new REST API. I would say it is expected behavior.
我不知道一个即席工具,但是您可以使用Invoke-RestMethod和 TFS REST API .
I'm not aware about an ad-hoc tool, but you can achieve the similar effect with Invoke-RestMethod and TFS REST API.
这篇关于TFSBuild命令行/vNext 2015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!