function NugetPack([bool] $pre) 
{
    $Version = $env:GitVersion_MajorMinorPatch
    if ($pre)
    {
        echo "Creating pre-release package..."
    } 
    else 
    {
        echo "Creating stable package..."
    }
    
    nuget pack Azuria.nuspec -symbols -version "$($env:GitVersion_FullSemVer)"
}

NugetPack ($env:APPVEYOR_REPO_TAG -eq "false")
function NugetPack([bool] $pre) 
{
    $Version = $env:GitVersion_MajorMinorPatch
    if ($pre)
    {
        echo "Creating pre-release package..."
    } 
    else 
    {
        echo "Creating stable package..."
    }
    
    nuget pack Azuria.nuspec -symbols -version "$($env:GitVersion_LegacySemVer)"
}

NugetPack ($env:APPVEYOR_REPO_TAG -eq "false")
Use legacy semantic version for nuget packages This allows legacy nuget clients to consume the pre-release packages as even the newest versions of nuget don't fully support SemVer 2.0
Use legacy semantic version for nuget packages
This allows legacy nuget clients to consume the pre-release packages as even the newest versions of nuget don't fully support SemVer 2.0
