I created Bash Script , which automatically replaces the version number in files such as AssemblyVersion.cs, and can be used in the build step, similar to the Power Shell Script published by Microsoft :
#!/bin/bash # Sample call: ./ApplyVersionToAssemblies.sh ../Source/ AssemblyInfo.cs XamarinAndroid_1.0.0.1 echo "Script to automatically set the version-number in files (eg AssemblyInfo.cs)" if [ $# -ne 3 ]; then echo "Usage: $0 path_to_search filename build_number" exit fi # Input is something like XamarinAndroid_1.2.3.4 and we want to extract only the 1.2.3.4 # See http:
First create variables for the major and minor versions 
Second, set the assembly number format to $(BuildDefinitionName)_$(Major).$(Minor).$(Year:yy)$(DayOfYear).$(Rev:rr) on the General tab in the assembly definition

And finally, create a bash step - a script or Powershell with scripts on top: 
source share