diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 40395062d8..31f67e7154 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,3 +1,6 @@ +#### 1.9.2 - 01.06.2015 +* Do not duplicate files in the nupkg - https://github.com/fsprojects/Paket/issues/851 + #### 1.9.1 - 01.06.2015 * Pack command reuses project version if directly given - https://github.com/fsprojects/Paket/issues/837 diff --git a/src/Paket.Core/NupkgWriter.fs b/src/Paket.Core/NupkgWriter.fs index ca19b13017..64aee01a45 100644 --- a/src/Paket.Core/NupkgWriter.fs +++ b/src/Paket.Core/NupkgWriter.fs @@ -242,7 +242,10 @@ let Write (core : CompleteCoreInfo) optional workingDir outputDir = for path, writer in writeNupkg core optional do addEntry zipFile path writer - contentTypeDoc (Seq.toList entries) + entries + |> Seq.distinct + |> Seq.toList + |> contentTypeDoc |> xDocWriter |> addEntry zipFile contentTypePath