anchor.diff:  
   Target "Clean" (fun _ ->
       CleanDir "temp/release"
  +    DeleteDir @".fake"
  +)
   
  +// Copy the snippet definition file to the correct path for inclusion in the package
  +Target "CopySnippets" (fun _ ->
  +    DeleteDir @"release/snippets"
  +    CopyDir @"release/snippets" @"src/snippets" (fun _->true)
   )
   
   Target "BuildGenerator" (fun () ->
  
positive.code: 
  Target "Release" (fun _ ->
      let args = sprintf "publish %s" release.NugetVersion
      let result =
          ExecProcess (fun info ->
              info.FileName <- apmTool
              info.WorkingDirectory <- tempReleaseDir
              info.Arguments <- args) System.TimeSpan.MaxValue
      if result <> 0 then failwithf "Error during running apm with %s" args
      DeleteDir "temp/release"
  )
  
  
negative.code:     Branches.tag "" tagName
      Branches.pushTag "" "origin" tagName
  )
  
  Target "PushToMaster" (fun _ ->
      CleanDir tempReleaseDir
  