anchor.diff:          { c with
               Project = "src/Paket/Paket.fsproj"
               OutputPath = tempDir
  -            AdditionalArgs =
  -                [ sprintf "/p:Version=%s" release.NugetVersion
  -                  sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath
  -                  "/p:PackAsTool=true" ]
  +            AdditionalArgs = packageProps @ [ "/p:PackAsTool=true" ]
               ToolPath = dotnetExePath
           })
       DotNetCli.Pack (fun c ->
           { c with
               Project = "src/Paket.Bootstrapper/Paket.Bootstrapper.csproj"
               OutputPath = tempDir
  -            AdditionalArgs =
  -                [ sprintf "/p:Version=%s" release.NugetVersion
  -                  sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath
  -                  "/p:PackAsTool=true"]
  +            AdditionalArgs = packageProps @ [ "/p:PackAsTool=true" ]
               ToolPath = dotnetExePath
           })
       DotNetCli.Pack (fun c ->
           { c with
               Project = "src/FSharp.DependencyManager.Paket/FSharp.DependencyManager.Paket.fsproj"
               OutputPath = tempDir
  -            AdditionalArgs =
  -                [ sprintf "/p:Version=%s" release.NugetVersion
  -                  sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath ]
  +            AdditionalArgs = packageProps
               ToolPath = dotnetExePath
           })
   )
  
positive.code:     if result <> 0 then failwithf "Error during adding icon %s to %s with %s %s" paketExeIcon paketFile rhPath args
  )
  
  let releaseNotesProp releaseNotesLines =
      let xn name = XName.Get(name)
      let text = releaseNotesLines |> String.concat Environment.NewLine
      let doc =
          XDocument(
              [ XComment("This document was automatically generated.") :> obj
                XElement(xn "Project",
                  XElement(xn "PropertyGroup",
                      XElement(xn "PackageReleaseNotes", text)
                  )
                ) :> obj ]
          )
  
      let path = Path.GetTempFileName()
      doc.Save(path)
      path
  
  Target "NuGet" (fun _ ->
      let releaseNotesPath = releaseNotesProp release.Notes
  
      DotNetCli.Pack (fun c ->
          { c with
              Project = "src/Paket.Core/Paket.Core.fsproj"
              OutputPath = tempDir
              AdditionalArgs =
                  [ sprintf "/p:Version=%s" release.NugetVersion
                    sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath ]
              ToolPath = dotnetExePath
          })
  
  
negative.code: // --------------------------------------------------------------------------------------
  // Build library & test project
  
  let releaseNotesProp releaseNotesLines =
      let xn name = XName.Get(name)
      let text = releaseNotesLines |> String.concat Environment.NewLine
      let doc =
          XDocument(
              [ XComment("This document was automatically generated.") :> obj
                XElement(xn "Project",
                  XElement(xn "PropertyGroup",
                      XElement(xn "PackageReleaseNotes", text)
                  )
                ) :> obj ]
          )
  
      let path = Path.GetTempFileName()
      doc.Save(path)
      path
  
  let releaseNotesPath = releaseNotesProp release.Notes
  
  let packageProps = [
      sprintf "/p:Version=%s" release.NugetVersion
      sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath
  ]
  
  Target "Build" (fun _ ->
      DotNetCli.Build (fun c ->
          { c with
              Project = solutionFile
              ToolPath = dotnetExePath
              AdditionalArgs = packageProps
          })
  )
  
  