anchor.diff:  open Fake.ReleaseNotesHelper
   open System
   open System.IO
  -#if MONO
  -#else
  -#load "packages/SourceLink.Fake/Tools/Fake.fsx"
  -open SourceLink
  -#endif
   
   
   // --------------------------------------------------------------------------------------
  
positive.code:   !!testAssemblies |> xUnit(fun p ->
                          { p with TimeOut = TimeSpan.FromMinutes 20. }))
  
  #if MONO
  #else
  // --------------------------------------------------------------------------------------
  // SourceLink allows Source Indexing on the PDB generated by the compiler, this allows
  // the ability to step through the source code of external libraries https://github.com/ctaggart/SourceLink
  Target "SourceLink" (fun _ ->
      let baseUrl = sprintf "%s/%s/{0}/%%var2%%" gitRaw (project.ToLower())
      use repo = new GitRepo(__SOURCE_DIRECTORY__)
      !! "src/**/*.fsproj"
      |> Seq.iter (fun f ->
          let proj = VsProj.LoadRelease f
          logfn "source linking %s" proj.OutputFilePdb
          let files = proj.Compiles -- "**/AssemblyInfo.fs"
          repo.VerifyChecksums files
          proj.VerifyPdbChecksums files
          proj.CreateSrcSrv baseUrl repo.Revision (repo.Paths files)
          Pdbstr.exec proj.OutputFilePdb proj.OutputFilePdbSrcSrv
      )
  )
  Target "MkBundle" (fun _ ->
     ignore( Shell.Exec ("sh",args="-c './bundle.sh'"
  )))
  #endif
  
  // Generate the documentation
  Target "GenerateReferenceDocs"
    (fun _ ->
  
negative.code: =?> ("GenerateDocs", isLocalBuild && not isMono) ==> "All"
  =?> ("ReleaseDocs", isLocalBuild && not isMono)
  "All"
  ==> "BuildPackage"
  
  "CleanDocs" ==> "GenerateHelp" ==> "GenerateReferenceDocs" ==> "GenerateDocs"
  