In the first build step for a build, I am reading a major/minor version value from a file and appending the build number (see PowerShell below). This works well for the remaining build steps, but the modified build number isn't getting picked up by the AssemblyInfo patcher - it uses the original value (which is the build counter). Is there a way to have the AssemblyInfo patcher use the updated value? Is there a better way to update the build number from the file so that it is available to the AssemblyInfo patcher?
PowerShell in the first build step used to update the version.
$majorMinor = Get-Content "$($base.dir)\current.ver"
Write-Output "##teamcity[buildNumber '$majorMinor.$env:BUILD_NUMBER']"
The current.ver file contains: 4.1 (or some other major/minor string).