ReleaseNotesAliases.

ParseAllReleaseNotes(ICakeContext, FilePath) Method

Summary

Parses all release notes.
Namespace
Cake.Common
Containing Type
ReleaseNotesAliases

Syntax

[CakeMethodAlias]
public static IReadOnlyList<ReleaseNotes> ParseAllReleaseNotes(this ICakeContext context, FilePath filePath)

Examples

var releaseNotes = ParseAllReleaseNotes("./ReleaseNotes.md");
foreach(var releaseNote in releaseNotes)
{
    Information("Version: {0}", releaseNote.Version);
    foreach(var note in releaseNote.Notes)
    {
        Information("\t{0}", note);
    }
}

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.

Parameters

Name Type Description
context ICakeContext The context.
filePath FilePath The file path.

Return Value

Type Description
IReadOnlyList<ReleaseNotes> All release notes.