Skip to content

Commit

Permalink
Update version check in PreBuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandreu committed Nov 23, 2019
1 parent 6c26479 commit d651d57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/PreBuild.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Write-Host "##vso[task.setvariable variable=ThreeDigitVersion;]$version"
Get-ChildItem "build/SharedAssemblyInfo.cs" |
ForEach-Object {
$c = ($_ | Get-Content -encoding UTF8)
if ($version -and -not ($c -match [Regex]::Escape("AssemblyVersion(`"$($version.Substring(1)).*`")"))) {
if ($version -and -not ($c -match [Regex]::Escape("AssemblyVersion(`"$($version.Substring(1)).0`")"))) {
$message = "Tag version $version does not coincide with assembly version"
Write-Host "$("##vso[task.setvariable variable=ErrorMessage]") $message"
exit 1
Expand Down

0 comments on commit d651d57

Please sign in to comment.