anchor.diff:    |> Array.toList
   
   Target "Generate" (fun _ ->
  -  if isMono then
  +  if isMonoRuntime then
       let config = findToolInSubPath "FSharpApiSearch.Database.exe.config" (currentDirectory @@ ".." @@ "packages" @@ "build")
       let doc = XDocument.Load(config)
       doc.XPathSelectElements("/configuration/appSettings/add")
  
positive.code:   let cmd, args =
      let exe = "../.paket/paket.exe"
      let restore = "restore"
      if isMono then ("mono", sprintf "%s %s" exe restore)
      else (exe, restore)
    let exitCode =
      ExecProcess (fun info ->
  
negative.code:   let exe = findToolInSubPath "FSharpApiSearch.Database.exe" (currentDirectory @@ ".." @@ "packages" @@ "build")
    let args =
      // TODO: enable external assemblies
      if isMonoRuntime then
        [|
          "System.Xml.Linq"
          "System.Runtime.Serialization"
  