anchor.diff:  )
   
   Target "Build" (fun _ ->
  -//    !! "SourceLink.sln" |> MSBuildRelease "" "Rebuild" |> ignore
  -    MSBuildHelper.build  (fun p ->
  -    { p with
  -        Targets = ["Rebuild"]
  -        Properties = ["Configuration","Release"]
  -//      NoConsoleLogger = true
  -    }) "SourceLink.sln"
  +    !! "SourceLink.sln" |> MSBuildRelease "" "Rebuild" |> ignore
   )
   
   Target "SourceLink" (fun _ ->
  
positive.code: let versionInfo = sprintf "%s %s %s" versionAssembly dt.IsoDateTime revision
  let buildVersion = if String.IsNullOrEmpty prerelease then versionFile else sprintf "%s-%s" versionFile prerelease
  
  let mutable tfsLogger : MyListener = Unchecked.defaultof<_>()
  if isTfsBuild then
      let tb = getTfsBuild()
      let bi = tb.Build.Information
      listeners.Clear()
      tfsLogger <- MyListener(bi)
      listeners.Add(MyListener(bi))
  
  
  Target "Clean" (fun _ -> !! "**/bin/" ++ "**/obj/" |> CleanDirs)
  
  //Target "Tfs" (fun _ ->
  //    
  //
  //
  //
  ////    logfn "number of build information nodes: %d" bi.Nodes.Length
  //////    for n in tb.Build.Information.Nodes do
  //////        logfn "node id: %d %A" n.Id n
  ////    
  ////    let main = bi.AddSummarySection 1 "a1" "The Main Section" 
  ////    main.AddMessage "this is cool"
  ////    main.AddMessage "this is a number: %d" 7
  ////    main.AddMessage "this is a link to [google](http://google.com/)"
  ////    bi.Save()
  //)
  
  Target "BuildVersion" (fun _ ->
      let args = sprintf "UpdateBuild -Version \"%s\"" buildVersion
  
negative.code:     }) "Git/Git.nuspec"
  )
  
  "Clean"
      =?> ("BuildVersion", buildServer = BuildServer.AppVeyor)
      ==> "AssemblyInfo"
      ==> "Build"
      =?> ("SourceLink", isMono = false && hasBuildParam "link")
      ==> "NuGet"
  
  RunTargetOrDefault "NuGet"