private static BinaryAttachment GetImageAttachment(UriDataAttachment vstsAttachment) { var image = Image.FromFile(vstsAttachment.Uri.LocalPath); return(Attachment.CreateImageAttachment(vstsAttachment.Description, image)); }