Created
January 28, 2010 15:05
-
-
Save chaliy/288818 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.Xml.Linq | |
let xn n = XName.Get(n, "http://schemas.microsoft.com/developer/msbuild/2003") | |
let xattrn n = XName.Get(n) | |
let xelem name (x:XElement) = x.Element(xn name) | |
let xattr name (x:XElement) = | |
x.Attribute(xattrn name).Value | |
let load (proj : XElement) = | |
let references = proj.Descendants(xn "DefinedReference") | |
{ | |
References = | |
references | |
|> Seq.map (fun x -> | |
{ | |
Id = x |> xattr "Id"; | |
Assembly = x |> xattr "Assembly" | |
}) | |
|> Seq.toList | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment