anchor.diff:          let xn s = System.Xml.Linq.XName.Get(s)
           if report.Descendants(xn "defect").Any(fun d -> d.Attribute(xn "Severity").Value = "High" || d.Attribute(xn "Severity").Value = "Critical")
           then
  -            let client = new GitHubClient(new ProductHeaderValue("GithubGistApiTest"));
  -            client.Credentials <- new Credentials(environVar "Create_Gist_Token");
  -            let newGist = new NewGist()
  -            newGist.Description <- "Gendarme report " + version
  -            newGist.Files.Add("GendarmeReport." + version + ".xml", report.ToString())
  -            newGist.Public <- false
  -            let createdGist = client.Gist.Create(newGist).Result;
  -            traceImportant createdGist.HtmlUrl
  +            saveGendarmeReportAsGist report
   )
   
   Target "LaunchNVika" (fun _ ->
  
positive.code:         info.Arguments <- "/o=\"" + artifactsDir + "inspectcodereport.xml\" /project=\"NVika\" \"src\Vika.sln\"" ) |> ignore
  )
  
  Target "GendarmeAnalysis" (fun _ ->
      "mono.gendarme" |> NugetInstall (fun p ->
      { p with
  
negative.code:         })
  )
  
  BuildFailureTarget "SaveGendarmeReportOnBuildFail" (fun _ ->
      if fileExists (buildResultDir @@ "GendarmeReport.xml")
      then
          let report = System.Xml.Linq.XDocument.Load(buildResultDir @@ "GendarmeReport.xml")
          saveGendarmeReportAsGist report
  )
  
  Target "All" DoNothing
  
  let isAppVeyorBuild = buildServer = AppVeyor
  