$regex = New-Object System.Text.RegularExpressions.Regex('<MajorVersion>(\d\.\d)</MajorVersion>')
$m = $regex.Match((Get-Content src\Salesforce.VisualStudio.Services\Salesforce.VisualStudio.Services.csproj))
$majorMinor = $m.Groups[1].Value
$version = $majorMinor + '.' + $env:BuildNumber

Add-AppveyorMessage -Message "Updating version to $version" -Category Information

Update-AppveyorBuild -Version $version

$regex = New-Object System.Text.RegularExpressions.Regex('<MajorVersion>(\d\.\d)</MajorVersion>')
$m = $regex.Match((Get-Content Salesforce.props))
$majorMinor = $m.Groups[1].Value
$version = $majorMinor + '.' + $env:BuildNumber

Add-AppveyorMessage -Message "Updating version to $version" -Category Information

Update-AppveyorBuild -Version $version

Fix appveyor version script to look at correct file.
Fix appveyor version script to look at correct file.
