anchor.diff:  )
   
   Target "Publish" (fun _ ->
  +    let publishArgs =
  +        [
  +            "--no-build"
  +        ] // since no build, we have to ensure that the build sets assemblyinfo correctly, especially because the publish output of this step
  +          // is used in the ILRepack of the .net executable
  +
       DotNetCli.Publish (fun c ->
           { c with
               Project = "src/Paket"
               Framework = "net461"
               Output = FullName (currentDirectory </> buildDirNet461)
               ToolPath = dotnetExePath
  -            AdditionalArgs = ["--no-build"]
  +            AdditionalArgs = publishArgs
           })
   
       DotNetCli.Publish (fun c ->
  
positive.code:         { c with
              Project = "src/Paket/Paket.fsproj"
              OutputPath = tempDir
              AdditionalArgs =
                  [ sprintf "/p:Version=%s" release.NugetVersion
                    sprintf "/p:PackageReleaseNotesFile=%s" releaseNotesPath
                    "/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"]
              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 ]
              ToolPath = dotnetExePath
          })
  )
  
negative.code:     let result =
          ExecProcess (fun info ->
              info.FileName <- currentDirectory </> "packages" </> "build" </> "ILRepack" </> "tools" </> "ILRepack.exe"
              info.Arguments <- sprintf "/copyattrs /lib:%s /ver:%s /out:%s %s %s" buildDirNet461 release.AssemblyVersion paketFile primaryExe mergeLibs
              ) (TimeSpan.FromMinutes 5.)
  
      if result <> 0 then failwithf "Error during ILRepack execution."
  