我遇到的问题是TFS似乎忽略了环境.新行在我的弦里。所以用这个代码:
item.Fields[GENCOMMENTS].Value = string.Concat(DateTime.Now.ToShortDateString()
, " - QA Dashboard - Required By Date Reason set to \"Hotfix\", but previously contained \""
, item.Fields[REQBYDTREASON].Value.ToString()
, "\"."
, Environment.NewLine
, Environment.NewLine
, Environment.NewLine
, item.Fields[GENCOMMENTS].Value.ToString());
THIS SENTENCE WAS ALREADY IN GENERAL COMMENTS
当工作项被保存时,我在general comments部分得到以下输出
9/29/2010 - QA Dashboard - Required By Date Reason set to "Hotfix", but previously contained "hotfixtest".THIS SENTENCE WAS ALREADY IN GENERAL COMMENTS
为什么它会忽略新行以及如何将新行放入工作项?
谢谢,