private static TextAttachment GetTextAttachment(UriDataAttachment vstsAttachment) { var sb = GetFileAsString(vstsAttachment); return(Attachment.CreatePlainTextAttachment(vstsAttachment.Description, sb.ToString())); }