Skip to content

Commit

Permalink
Merge pull request #453 from Vidarls/project_reference_bug
Browse files Browse the repository at this point in the history
Remove parsing of invalid child element of ProjectReference
  • Loading branch information
forki committed Dec 17, 2014
2 parents 5f3a6bc + 08a3d8f commit a86983c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Paket.Core/ProjectFile.fs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ type FileItem =
type ProjectReference =
{ Path : string
Name : string
GUID : Guid
Private : bool }
GUID : Guid }

[<RequireQualifiedAccess>]
type ProjectOutputType =
Expand Down Expand Up @@ -265,8 +264,7 @@ type ProjectFile =
[for n in this.Document |> getDescendants "ProjectReference" ->
{ Path = n.Attributes.["Include"].Value
Name = forceGetInnerText n "Name"
GUID = forceGetInnerText n "Project" |> Guid.Parse
Private = forceGetInnerText n "Private" |> bool.Parse }]
GUID = forceGetInnerText n "Project" |> Guid.Parse }]

member this.ReplaceNuGetPackagesFile() =
let noneNodes = this.Document |> getDescendants "None"
Expand Down

0 comments on commit a86983c

Please sign in to comment.