如何使用 TFS 2010 Power Tools 命令行实用程序 TFPT 在新 WorkItem 的描述字段中添加换行符?我试过这个:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here<br /><br />I'd like to have line breaks too"
还有这个:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here\r\nI'd like to have line breaks too"
无济于事。
有什么建议吗?
==============================
我实施的一种解决方法是创建一个新的(实际上是扩展的)工作项,其中包含我最初嵌入在长描述中的属性。所以,现在我将它们分解为单独的字段,例如:
Z:\>tfpt workitem /new "Project Ipsum\Issue" /collection:http://myserver:8080/tfs/test /fields:"Title=Testing Command Line 3;Description=Description of issue goes here;Field1=more info;Field2=even more data"
然后我创建了表单域(一个新的选项卡组)来显示它们。反正这样更干净。
确定如何使用 TFPT 添加换行符仍然很有趣。
谢谢。