diff --git a/src/Paket.Core/ProjectFile.fs b/src/Paket.Core/ProjectFile.fs index ba12021461..45c4f07b44 100644 --- a/src/Paket.Core/ProjectFile.fs +++ b/src/Paket.Core/ProjectFile.fs @@ -497,6 +497,7 @@ type ProjectFile = (node |> getAttribute "Project" |> Option.get) node.ParentNode.RemoveChild node |> ignore match sibling with + | null -> () | sibling when sibling.Name.Equals("Target") -> let deleteTarget = Utils.askYesNo