$proj = "SOVND.Client"
$nugetServer = $env:NugetServer
$apiKey = $env:NugetKey

$root = $env:APPVEYOR_BUILD_FOLDER
$versionStr = "$($env:APPVEYOR_BUILD_VERSION)"

ls
cd $root\$proj\bin\$env:CONFIGURATION\
ls

nuget pack $root\nuget\$proj.nuspec -OutputDirectory $root\nuget\ -Version $versionStr

If($lastexitcode -eq 0)
{
	Write-Host "Nuget package built successfully"
	nuget push nuget\*.nupkg -Source $nugetServer $apiKey
} else {
	Write-Host "Nuget packaging error $($lastexitcode)"
}

ls -R
$proj = "SOVND.Client"
$nugetServer = $env:NugetServer
$apiKey = $env:NugetKey

$root = $env:APPVEYOR_BUILD_FOLDER
$versionStr = "$($env:APPVEYOR_BUILD_VERSION)"

ls
cd $root\$proj\bin\$env:CONFIGURATION\
ls

nuget pack $root\nuget\$proj.nuspec -OutputDirectory $root\nuget\ -Version $versionStr

If($lastexitcode -eq 0)
{
	Write-Host "Nuget package built successfully"
	nuget push $root\nuget\*.nupkg -Source $nugetServer $apiKey
} else {
	Write-Host "Nuget packaging error $($lastexitcode)"
}

ls -R
Fix nuget path for appveyor
Fix nuget path for appveyor
