
$buildNumber = $env:APPVEYOR_BUILD_VERSION
$buildFolder = '.'

if($env:APPVEYOR_BUILD_FOLDER) {
	$buildFolder = $env:APPVEYOR_BUILD_FOLDER
}

$projectFilePath = Join-Path $buildFolder "src\Halcyon.Mvc\project.json"

Write-Host "Bumping version for project file: $projectFilePath to $buildNumber"

$projectConfig = Get-Content $projectFilePath | 
					ConvertFrom-Json

$projectConfig.version = $buildNumber

$projectConfig | 
	ConvertTo-Json |
	Out-File $projectFilePath


$buildNumber = $env:APPVEYOR_BUILD_VERSION
$buildFolder = '.'

if($env:APPVEYOR_BUILD_FOLDER) {
	$buildFolder = $env:APPVEYOR_BUILD_FOLDER
}

$projectFilePath = Join-Path $buildFolder "src\Halcyon.Mvc\project.json"

Write-Host "Bumping version for project file: $projectFilePath to $buildNumber"

$projectFileContent = Get-Content $projectFilePath

Write-Host $projectFileContent

$projectConfig = $projectFileContent | ConvertFrom-Json

$projectConfig.version = "$buildNumber-alpha"

$projectConfig | 
	ConvertTo-Json |
	Out-File $projectFilePath

Add logging to verion bump script
Add logging to verion bump script
