使用TFPT命令行工具在TFS中创建一个新的WorkItem,其中包含描述字段中的换行符

bea*_*ous 5 tfs2010 tfs-power-tools

如何使用TFS 2010 Power Tools命令行实用程序TFPT在新WorkItem的description字段中添加换行符?我试过这个:

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"
Run Code Online (Sandbox Code Playgroud)

还有这个:

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"
Run Code Online (Sandbox Code Playgroud)

无济于事.

有什么建议吗?

============================

我实现的一个解决方法是创建一个新的(实际扩展的)工作项,其中包含我最初嵌入在长描述中的属性.所以,现在我把它们分成了不同的字段,如:

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"
Run Code Online (Sandbox Code Playgroud)

然后我创建了表单字段(一个新的选项卡组)来显示它们.无论如何,它更干净.

确定如何使用TFPT添加换行符仍然很有趣.

谢谢.

bea*_*ous 0

讨厌标记这个答案,但我确实添加了一个对我有用的解决方法。虽然我在我的OP中添加了我的问题的“解决方案”。这是为了清楚起见(感谢pantelif 的概念)

我实施的一种解决方法是创建一个新的(实际上是扩展的)工作项,其属性是我最初嵌入到长描述中的。所以,现在我将它们分成不同的字段,例如:

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"
Run Code Online (Sandbox Code Playgroud)

然后我创建了表单字段(一个新的选项卡组)来显示它们。无论如何,这样更干净。

确定如何使用 TFPT 添加换行符仍然很有趣。