Hi,
I am running a build with the ApplyVersionToAssemblies.ps1 renamed to PreBuildVersioning.ps1. When i run the build it fails straight away and i get the following message in the log. As you can see the env variable has a value but for so reason it cannot find it on the next line. Can someone help me understand what's going on. The scripts run on the build server.
VERBOSE: TF_BUILD_BUILDNUMBER: CodeCoverageReleaseTest_1.1.0.1
C:\Builds\2\<tfsprojectname>\CodeCoverageReleaseTest\src\Build\PreBuildVersioning.ps1 :Could not find version number data in TF_BUILD_BUILDNUMBER.
This is the line of code failing in the powershell file.
$buildNumberRegex = "^(?<name>.*)_(?<build>\d*)\.(?<revision>\d*)$"$VersionData = [regex]::matches($Env:TF_BUILD_BUILDNUMBER,$buildNumberRegex)
Thanks
-paul