anchor.diff:          latestVersions 
           |> Seq.filter (fun (name,_) -> not (confictingPackages |> Set.contains (name.ToLower())))
           |> Seq.map (fun (name,version) -> sprintf "nuget %s %s" name version)
  +        |> Seq.toList
       
       if not depFileExists 
       then
  -        File.WriteAllLines(depFileName, Seq.append ["source http://nuget.org/api/v2"; String.Empty] dependencyLines)
  +        let packageSources =
  +            match findAllFiles(".", "nuget.config") |> Seq.tryFind (fun _ -> true) with
  +            | Some configFile -> 
  +                let sources = readPackageSources(configFile) 
  +                safeDeleteFile "nuget.config"
  +                sources
  +            | None -> ["http://nuget.org/api/v2"]
  +            |> List.map (sprintf "source %s")
  +        File.WriteAllLines(depFileName, packageSources @ [String.Empty] @ dependencyLines)
           tracefn "Generated \"%s\" file" depFileName 
       elif not (dependencyLines |> Seq.isEmpty)
       then
  
positive.code: 
  let private depFileName = "paket.dependencies"
  
  let private convertNugetsToDepFile(nugetPackagesConfigs) =
      let allVersions =
          nugetPackagesConfigs
  
negative.code: open System
  open System.IO
  open System.Collections.Generic
  open System.Xml
  
  /// Downloads and extracts all packages.
  let ExtractPackages(force, packages) = 
  