Skip to content

Commit

Permalink
Remove parsing of invalid child element of ProjectReference
Browse files Browse the repository at this point in the history
Fixes issue fsprojects#452.
According to http://msdn.microsoft.com/en-us/library/bb629388.aspx the Private element in question is not
a child element of ProjectReference item.
(Also it was not used anywhere at all)
  • Loading branch information
Vidar L. Sømme committed Dec 12, 2014
1 parent 5f3a6bc commit 08a3d8f
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 08a3d8f

Please sign in to comment.