From 08a3d8f012bc687138954d0db555e2633324af95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vidar=20L=2E=20S=C3=B8mme?= Date: Fri, 12 Dec 2014 20:26:39 +0100 Subject: [PATCH] Remove parsing of invalid child element of ProjectReference Fixes issue #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) --- src/Paket.Core/ProjectFile.fs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Paket.Core/ProjectFile.fs b/src/Paket.Core/ProjectFile.fs index 20a9a3307a..ed47023f2a 100644 --- a/src/Paket.Core/ProjectFile.fs +++ b/src/Paket.Core/ProjectFile.fs @@ -16,8 +16,7 @@ type FileItem = type ProjectReference = { Path : string Name : string - GUID : Guid - Private : bool } + GUID : Guid } [] type ProjectOutputType = @@ -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"