diff --git a/src/app/FakeLib/NuGet/NugetHelper.fs b/src/app/FakeLib/NuGet/NugetHelper.fs index f0f6a128765..46f5981a9d9 100644 --- a/src/app/FakeLib/NuGet/NugetHelper.fs +++ b/src/app/FakeLib/NuGet/NugetHelper.fs @@ -425,6 +425,7 @@ type NuSpecPackage = RequireLicenseAcceptance : bool Description : string Language : string + ReleaseNotes : string Tags : string } member x.Name = sprintf "%s %s" x.Id x.Version override x.ToString() = x.Name @@ -469,6 +470,7 @@ let getNuspecProperties (nuspec : string) = Description = getValue "description" Language = getValue "language" Tags = getValue "tags" + ReleaseNotes = getValue "releaseNotes" Url = String.Empty IsLatestVersion = false Created = DateTime.MinValue @@ -517,6 +519,7 @@ let extractFeedPackageFromXml (entry : Xml.XmlNode) = Owners = author Language = property "Language" Tags = property "Tags" + ReleaseNotes = property "ReleaseNotes" ProjectUrl = property "ProjectUrl" LicenseUrl = property "LicenseUrl" RequireLicenseAcceptance = boolProperty "RequireLicenseAcceptance" diff --git a/src/test/FsCheck.Fake/TestNuget.fs b/src/test/FsCheck.Fake/TestNuget.fs index c4e5e2ce43f..472a55fa1bb 100644 --- a/src/test/FsCheck.Fake/TestNuget.fs +++ b/src/test/FsCheck.Fake/TestNuget.fs @@ -29,6 +29,8 @@ let ``Can parse package information from nuget.org stream`` () = RequireLicenseAcceptance = false Description = "FAKE - F# Make - is a build automation tool for .NET. Tasks and dependencies are specified in a DSL which is integrated in F#. This package bundles all extensions." Language = "en-US" + ReleaseNotes = "FCS simplification - https://github.com/fsharp/FAKE/pull/773 +Paket push task runs in parallel - https://github.com/fsharp/FAKE/pull/768" Tags = "build fake f#" } Assert.Equal(expected.Id, result.Id) @@ -47,4 +49,5 @@ let ``Can parse package information from nuget.org stream`` () = Assert.Equal(expected.Description, result.Description) Assert.Equal(expected.Language, result.Language) Assert.Equal(expected.Tags, result.Tags) + Assert.Equal(expected.ReleaseNotes, result.ReleaseNotes) \ No newline at end of file diff --git a/src/test/Test.FAKECore/PackageMgt/NuSpecFileSpecs.cs b/src/test/Test.FAKECore/PackageMgt/NuSpecFileSpecs.cs index efa75467bdd..91473e0079d 100644 --- a/src/test/Test.FAKECore/PackageMgt/NuSpecFileSpecs.cs +++ b/src/test/Test.FAKECore/PackageMgt/NuSpecFileSpecs.cs @@ -30,6 +30,8 @@ public class nuspec_behaviours It should_contain_the_version_placeholder = () => Package.Version.ShouldEqual("@build.number@"); + It should_contain_the_releasenotes_placeholder = + () => Package.ReleaseNotes.ShouldEqual("@releaseNotes@"); } public class when_parsing_the_fake_nuspec_file diff --git a/src/test/Test.FAKECore/TestData/fake_no_schema.nuspec b/src/test/Test.FAKECore/TestData/fake_no_schema.nuspec index db1814dde5d..51a0e130c66 100644 --- a/src/test/Test.FAKECore/TestData/fake_no_schema.nuspec +++ b/src/test/Test.FAKECore/TestData/fake_no_schema.nuspec @@ -11,6 +11,7 @@ @iconUrl@ http://www.github.com/fsharp/Fake http://www.github.com/fsharp/Fake/blob/master/License.txt + @releaseNotes@ build \ No newline at end of file diff --git a/src/test/Test.FAKECore/TestData/fake_schema_2011_08.nuspec b/src/test/Test.FAKECore/TestData/fake_schema_2011_08.nuspec index 4fd88ee967b..c4f66b0a71a 100644 --- a/src/test/Test.FAKECore/TestData/fake_schema_2011_08.nuspec +++ b/src/test/Test.FAKECore/TestData/fake_schema_2011_08.nuspec @@ -11,6 +11,7 @@ @iconUrl@ http://www.github.com/fsharp/Fake http://www.github.com/fsharp/Fake/blob/master/License.txt + @releaseNotes@ build \ No newline at end of file