Skip to content

Instantly share code, notes, and snippets.

@kjnilsson
Created October 4, 2013 08:30
Show Gist options
  • Save kjnilsson/6822756 to your computer and use it in GitHub Desktop.
Save kjnilsson/6822756 to your computer and use it in GitHub Desktop.
Interop with libraries written in csharp
let dependencies (package : IPackage) =
match package.DependencySets with
| null -> []
| sets ->
sets
|> filterNulls
|> Seq.map (fun d -> d.Dependencies)
|> filterNulls
|> Seq.concat
|> filterNulls
|> Seq.filter (fun x -> x.VersionSpec <> null)
|> Seq.toList
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment