anchor.diff:                                               "IncludeSymbols", "true"
                                                "PackageOutputPath", FullName nuGetOutputFolder
                                                "NoBuild", "true" ]
  -    
  +
  +    let findDependencyNode name (doc:Xml.XmlDocument) =
  +            doc.SelectSingleNode(sprintf "//*[local-name()='dependency' and @id='%s']" name)
  +
       // Verify that AutoFixture reference is valid.
  -    let nuspecDoc = !! "AutoFixture.AutoNSubstitute*"
  -                    |> SetBaseDir nuGetOutputFolder
  -                    |> Seq.head
  -                    |> ZipHelper.UnzipFirstMatchingFileInMemory (fun ze -> ze.Name.EndsWith ".nuspec")
  -                    |> XMLDoc
  -
  -    let dependencyVersion = nuspecDoc.SelectSingleNode("//*[local-name()='dependency' and @id='AutoFixture']")
  +    let dependencyVersion = !! "AutoFixture.AutoNSubstitute*"
  +                            |> SetBaseDir nuGetOutputFolder
  +                            |> Seq.head
  +                            |> ZipHelper.UnzipFirstMatchingFileInMemory (fun ze -> ze.Name.EndsWith ".nuspec")
  +                            |> XMLDoc
  +                            |> findDependencyNode "AutoFixture"
                               |> getAttribute "version"
   
       if(buildVersion.nugetVersion <> dependencyVersion) 
  
positive.code: Target "RestoreNuGetPackages" (fun _ -> runMsBuild "Restore" None [])
  
  Target "EnableSourceLinkGeneration" (fun _ ->
      let areEqual a b = String.Equals(a, b, StringComparison.OrdinalIgnoreCase)
  
      // A set of sanity checks to fail with meaningful errors.
      let originUrl = Git.CommandHelper.runSimpleGitCommand "" "config --get remote.origin.url"
  
negative.code:     // Run xUnit desktop tests.
      xUnitDesktopFrameworkAssemblies
      // A bit hacky way to pass custom parameter to xUnit, but it works.
      |> flip Seq.append [ "-noautoreporters" ]
      |> xUnit2 (fun p -> { p with ToolPath = buildToolsDir </> "xunit.runner.console/tools/net452/xunit.console.exe"
                                   XmlOutputPath = testResultsFolder </> "xunit-desktop.xml" |> FullName |> Some
                                   Parallel = Collections })
  