title: CI with MSBuild - How does everyone manage assemblyinfo.cs
body: <p>After a lot of reading I'm a tad confused as to what the best practices are around managing the version held in assemblyinfo.cs.  There seem to be varying approaches, and some seem quite out of date.  All I want is to be able to set something like this:</p>
  
  <blockquote>
    <p>1.0.$BUILD_VERSION.0 </p>
  </blockquote>
  
  <p>after which the build translates to something like:</p>
  
  <blockquote>
    <p>1.0.142.0. </p>
  </blockquote>
  
  <p>How is everyone else doing it?  I'm using Jenkins for CI, specifically the Jenkinsfile approach which is stored in my Git repository. I got close to something using a .BAT file but then hit a brick wall as I couldn't pull in environment variables from a windows bat file for use in Jenkins.</p>