anchor.diff:              AdditionalArgs = [(sprintf "-o \"%s\"" tempDir); (sprintf "/p:Version=%s" release.NugetVersion); "/p:PackAsTool=true"]
           })
   )
  -
  -"DotnetPublish" ==> "NuGet"
   
   Target "PublishNuGet" (fun _ ->
       if hasBuildParam "PublishBootstrapper" |> not then
  
positive.code: Target "Restore" (fun _ ->
      //WORKAROUND dotnet restore with paket doesnt restore the PackageReference of SourceLink
      // ref https://github.com/fsprojects/Paket/issues/2930
      Paket.Restore (fun p ->
          { p with
              Group = "NetCoreTools" })
  
negative.code: 
      if result <> 0 then failwithf "Error during ILRepack execution."
  )
  "Publish" ==> "MergePaketTool"
  
  Target "RunIntegrationTests" (fun _ ->
      CreateDir "tests_result/net/Paket.IntegrationTests"
  