SIL.ReleaseTasks 2.6.0-beta0022

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of SIL.ReleaseTasks.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package SIL.ReleaseTasks --version 2.6.0-beta0022
NuGet\Install-Package SIL.ReleaseTasks -Version 2.6.0-beta0022
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SIL.ReleaseTasks" Version="2.6.0-beta0022" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add SIL.ReleaseTasks --version 2.6.0-beta0022
#r "nuget: SIL.ReleaseTasks, 2.6.0-beta0022"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install SIL.ReleaseTasks as a Cake Addin
#addin nuget:?package=SIL.ReleaseTasks&version=2.6.0-beta0022&prerelease

// Install SIL.ReleaseTasks as a Cake Tool
#tool nuget:?package=SIL.ReleaseTasks&version=2.6.0-beta0022&prerelease

SIL.ReleaseTasks package

Tasks in the SIL.ReleaseTasks nuget package:

CreateChangelogEntry task

Given a Changelog file, this task will add an entry to the debian changelog (debian/changelog). The changelog can be a markdown file and can follow the Keep a Changelog conventions.

Properties

  • ChangelogFile: The name (and path) of the markdown-style changelog file (required)

  • VersionNumber: The version number to put in the debian changelog (required)

  • PackageName: The name of the product/package (required)

  • DebianChangelog: The path and name of the debian changelog file (required)

  • Distribution: The name of the distribution to put in the debian changelog entry. Defaults to UNRELEASED

  • Urgency: The value to put in the urgency field in the debian changelog. Defaults to low

  • MaintainerInfo: Name and e-mail of the maintainer. Defaults to Anonymous <anonymous@example.com>

Example

<UsingTask TaskName="CreateChangelogEntry" AssemblyFile="SIL.ReleaseTasks.dll" />

<Target Name="Test">
  <CreateChangelogEntry ChangelogFile="$(RootDir)/CHANGELOG.md" VersionNumber="3.0.1"
    PackageName="myfavoriteapp" DebianChangelog="$(RootDir)/debian/changelog"
    Distribution="stable" Urgency="high" MaintainerInfo="John Doe &lt;john_doe@example.com&gt;" />
</Target>

This uses the markdown file CHANGELOG.md and VersionNumber to generate a changelog entry in the DebianChangeLog file giving the author credit to John Doe.

CreateReleaseNotesHtml task

Given a markdown-style changelog file, this class will generate a release notes HTML file. The changelog can be a markdown file and can follow the Keep a Changelog conventions.

If the HTML file already exists, the task will look for a section with class="releasenotes" and replace it with the current release notes.

Properties

  • ChangelogFile: The name (and path) of the markdown-style changelog file (required)

  • HtmlFile: The name (and path) of the output HTML file (required)

Example

<UsingTask TaskName="CreateReleaseNotesHtml" AssemblyFile="SIL.ReleaseTasks.dll" />

<Target Name="Test">
  <CreateReleaseNotesHtml ChangelogFile="$(RootDir)/CHANGELOG.md"
    HtmlFile="$(OutputDir)/ReleaseNotes.html" />
</Target>

This generates a ReleaseNotes.html file by creating a new file or by replacing the <div class='releasenotes'> in an existing .htm with a generated one.

StampChangelogFileWithVersion task

Replaces the first line in a markdown-style Changelog/Release file with the version and date. The changelog can be a markdown file and can follow the Keep a Changelog conventions.

This assumes that a temporary line is currently at the top: e.g. ## DEV_VERSION_NUMBER: DEV_RELEASE_DATE

Properties

  • ChangelogFile: The name (and path) of the markdown-style changelog file (required)

  • VersionNumber: The version number to put in the changelog file (required)

  • DateTimeFormat: The format string used to output the date. Default: yyyy-MM-dd

Example

<UsingTask TaskName="StampChangelogFileWithVersion" AssemblyFile="SIL.ReleaseTasks.dll" />

<Target Name="Test">
  <StampChangelogFileWithVersion ChangelogFile="$(RootDir)/CHANGELOG.md"
    VersionNumber="1.0.3" DateTimeFormat="dd/MMM/yyyy" />
</Target>

This stamps the CHANGELOG.md file with the version numbers (replacing the first line with '## VERSION_NUMBER DATE').

SetReleaseNotesProperty task

Sets a property to the changes mentioned in the topmost release in a CHANGELOG.md file. This is a markdown file that follows the Keep a Changelog conventions.

Properties

  • ChangelogFile: The name (and path) of the markdown-style changelog file. Defaults to ../CHANGELOG.md.

  • VersionRegex: Regular expression to extract the version number from the subheadings in the changelog file. Default: #+ \[([^]]+)\]

  • AppendToReleaseNotesProperty: Text that gets added to the end of the property

  • Value (output parameter): The name of the property that will be set

  • FilterEntries: Filters out entries that do not belong to a specific nuget package, when enabled.

Example

<UsingTask TaskName="SetReleaseNotesProperty" AssemblyFile="SIL.ReleaseTasks.dll" />

<Target Name="Test">
  <PropertyGroup>
    <TextToAdd><![CDATA[
See full changelog at https://github.com/sillsdev/SIL.BuildTasks/blob/master/CHANGELOG.md]]>
    </TextToAdd>
    <FilterEntries>true</FilterEntries>
  </PropertyGroup>
  <SetReleaseNotesProperty ChangelogFile="$(RootDir)/CHANGELOG.md"
    AppendToReleaseNotesProperty="$(TextToAdd)">
    <Output TaskParameter="Value" PropertyName="ReleaseNotes" />
  </SetReleaseNotesProperty>
</Target>

Automatically create release notes

By adding the SIL.ReleaseTasks nuget package to a project, the PackageReleaseNotes property will be automatically set when creating a nuget package of the .csproj project. This works with the new .csproj format that comes with VS 2017 and that defines the nuget package in the .csproj file.

If you don't want to automatically set the PackageReleaseNotes property, you can set the IgnoreSetReleaseNotesProp property to true.

By default the changelog file is expected in ../CHANGELOG.md. The name and path can be changed by setting the ChangelogFile property.

Keep a Changelog doesn't make any recommendations in what form versions should be put in the changelog. The default for the SetReleaseNotesProperty task follows the example given on the Keep a Changelog website, which puts the version number in square brackets, e.g. ## [1.0.0] - 2017-06-20. However, it's possible to set the VersionRegex property to allow parsing different formats.

NOTE: Due to msbuild bug #3468 the escape character is @ instead of \ (backslash)! To insert @ in the regular expression, double it: @@.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on SIL.ReleaseTasks:

Package Downloads
GlyssenShared

Interfaces and low-level classes needed by all products that work with Glyssen projects

GlyssenEngine

Library for working with Glyssen project data, including scripts and casting

Lengoo.SDK

The Lengoo SDK is a tool designed for .NET developers to simplify the use of Lengoo's services. It currently supports Lengoo's Connect and Translate REST APIs. This SDK allows for rapid integration of both human and machine translation capabilities into your application.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on SIL.ReleaseTasks:

Repository Stars
getsentry/sentry-dotnet
Sentry SDK for .NET
Version Downloads Last updated
2.6.0-beta0030 1,282 8/11/2023
2.6.0-beta0028 107 8/7/2023
2.6.0-beta0024 1,693 11/23/2022
2.6.0-beta0023 130 8/9/2022
2.6.0-beta0022 141 8/9/2022
2.6.0-beta0020 144 8/5/2022
2.6.0-beta0010 129 8/5/2022
2.6.0-beta0008 4,203 8/12/2021
2.6.0-beta0007 190 8/2/2021
2.6.0-beta0006 209 8/2/2021
2.5.1-beta0005 225 5/27/2021
2.5.1-beta0004 229 5/27/2021
2.5.1-beta0003 195 5/18/2021
2.5.1-beta.2 151 3/19/2021
2.5.0 75,111 2/24/2021
2.4.0 433 1/22/2021
2.3.4 5,148 10/5/2020
2.3.3 597 7/31/2020
2.3.2 581 5/22/2020
2.3.1 580 5/19/2020
2.3.0 523 4/16/2020
2.2.0 20,194 12/11/2018
2.1.0 879 7/28/2018
2.0.2 875 7/2/2018
2.0.1 901 6/29/2018
2.0.0 942 6/18/2018

Changes since version 2.5.0

Added:
- Added filter option for project-specific entries (#48)

Changed:
- Target .NET 4.7.2 instead of 4.6.1

Fixed:
- Exclude links from CHANGELOG.md file when extracting release notes (#46)

See full changelog at https://github.com/sillsdev/SIL.BuildTasks/blob/master/CHANGELOG.md