title: Write all build logs to a file in VSTS (Visual Studio Team Service) and send as E-mail
body: <p>I want to write all the logs generated during build of my solution (as a last step in build definition) and email them as an attachment to other users. I am not able to find any dedicated build task to achieve this. I know they can be downloaded at the end, but I want to add them to a file in build process.</p>
  
  <p><a href="https://i.stack.imgur.com/wFr8Q.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wFr8Q.png" alt="enter image description here"></a></p>
  
  <p>Alternatively, Is it possible to do it with power-shell scripts in the build task. I am not very familiar with writing powershell scripts :( </p>