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:

> 
> 1.0.$BUILD\_VERSION.0 
> 
> 
> 

after which the build translates to something like:

> 
> 1.0.142.0. 
> 
> 
> 

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.