anchor.diff:  let isVersionTag tag = Version.TryParse tag |> fst
   let hasRepoVersionTag = isAppVeyorBuild && AppVeyorEnvironment.RepoTag && isVersionTag AppVeyorEnvironment.RepoTagName
   let assemblyVersion = if hasRepoVersionTag then AppVeyorEnvironment.RepoTagName else release.NugetVersion
  +let nugetVersion = release.NugetVersion
  +open SemVerHelper
  +let nugetDebugVersion =
  +    let semVer = SemVerHelper.parse nugetVersion
  +    let debugPatch, debugPreRelease =
  +        match semVer.PreRelease with
  +        | None -> semVer.Patch + 1, { Origin = "alpha001"; Name = "alpha"; Number = Some 1; Parts = [AlphaNumeric "alpha001"] }
  +        | Some pre ->
  +            let num = match pre.Number with Some i -> i + 1 | None -> 1
  +            let name = pre.Name
  +            let newOrigin = sprintf "%s%03d" name num
  +            semVer.Patch, { Origin = newOrigin; Name = name; Number = Some num; Parts = [AlphaNumeric newOrigin] }
  +    let debugVer =
  +        { semVer with
  +            Patch = debugPatch
  +            PreRelease = Some debugPreRelease }
  +    debugVer.ToString()
   let buildDate = DateTime.UtcNow
   let buildVersion =
       if hasRepoVersionTag then assemblyVersion
  
positive.code:             | _ -> getUserInput "Nuget API Key: "
          { p with
              ApiKey = apikey
              WorkingDir = buildDir })
  )
  
  // --------------------------------------------------------------------------------------
  
negative.code: //use dotnet-mergenupkg to merge the .netcore nuget package into the default one
  Target "Nuget.AddNetCore" (fun _ ->
      do
          let nupkg = sprintf "%s/FSharp.Compiler.Service.%s.nupkg" releaseDir release.AssemblyVersion
          let netcoreNupkg = sprintf "src/fsharp/FSharp.Compiler.Service/bin/Release/FSharp.Compiler.Service.%s.nupkg" release.AssemblyVersion
          runCmdIn false "." "dotnet" "mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
  
      do
          let nupkg = sprintf "%s/FSharp.Compiler.Service.ProjectCracker.%s.nupkg" releaseDir release.AssemblyVersion
          let netcoreNupkg = sprintf "src/fsharp/FSharp.Compiler.Service.ProjectCracker/bin/Release/FSharp.Compiler.Service.ProjectCracker.%s.nupkg" release.AssemblyVersion
          runCmdIn false "." "dotnet" "mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
  )
  
  Target "Nuget.AddNetCore.Debug" (fun _ ->
      do
          let nupkg = sprintf "%s/FSharp.Compiler.Service.%s.nupkg" debugDir nugetDebugVersion
          let netcoreNupkg = sprintf "src/fsharp/FSharp.Compiler.Service/bin/Debug/FSharp.Compiler.Service.%s.nupkg" release.AssemblyVersion
          runCmdIn false "." "dotnet" "mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
  
      do
          let nupkg = sprintf "%s/FSharp.Compiler.Service.ProjectCracker.%s.nupkg" debugDir nugetDebugVersion
          let netcoreNupkg = sprintf "src/fsharp/FSharp.Compiler.Service.ProjectCracker/bin/Debug/FSharp.Compiler.Service.ProjectCracker.%s.nupkg" release.AssemblyVersion
          runCmdIn false "." "dotnet" "mergenupkg --source %s --other %s --framework netstandard1.6" nupkg netcoreNupkg
  )
  
  