FunFair.BuildVersion.Publishers 6.2.16.363-main

This is a prerelease version of FunFair.BuildVersion.Publishers.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package FunFair.BuildVersion.Publishers --version 6.2.16.363-main
NuGet\Install-Package FunFair.BuildVersion.Publishers -Version 6.2.16.363-main
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="FunFair.BuildVersion.Publishers" Version="6.2.16.363-main" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FunFair.BuildVersion.Publishers --version 6.2.16.363-main
#r "nuget: FunFair.BuildVersion.Publishers, 6.2.16.363-main"
#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 FunFair.BuildVersion.Publishers as a Cake Addin
#addin nuget:?package=FunFair.BuildVersion.Publishers&version=6.2.16.363-main&prerelease

// Install FunFair.BuildVersion.Publishers as a Cake Tool
#tool nuget:?package=FunFair.BuildVersion.Publishers&version=6.2.16.363-main&prerelease

Build Version

Simpler/faster git specific version builder

Build Status

Branch Status
main Build: Pre-Release
release Build: Release

Release Notes/Changelog

View changelog

Installation

Install as a global tool

dotnet tool install FunFair.BuildVersion

To update to latest released version

dotnet tool update FunFair.BuildVersion

Install as a local tool

dotnet new tool-manifest
dotnet tool install FunFair.BuildVersion --local

To update to latest released version

dotnet tool update FunFair.BuildVersion --local

Supported Branch formats

Supports release and hotfix branches in the following formats

  • release/version
  • release/package/version
  • release-platform/package/version
  • release-platform/version
  • hotfix/version
  • hotfix/package/version
  • hotfix-platform/package/version
  • hotfix-platform/version

version can be in the following formats:

  • 1
  • 1.2
  • 1.2.3

Output Release Formats

  • Release branches: 1.2.3.4;
    • where 4 is a build number passed to the tool
  • Pre-Release branches 1.2.3.4-tag
    • where 4 is a build number passed to the tool
    • where tag is generated from the branch name (or matching branch for a pull request if it can be located)

Tag restrictions

  • Maximum length before truncating after any processing: 15 characters
  • Non alphanumeric characters are replaced with -
  • Multiple - consecutive characters are shrunk to a single one
  • removes the top folder of the branch when using branches like feature/name so that tag is processed on name only
  • For Pull requests, if a branch cannot be located by its SHA hash then the tag will become pr-id where id is the id of the pull request
  • if no suitable tag can be generated the tag prerelease will be used.

Command line arguments

  -x, --WarningsAsErrors    (Default: false) Whether warnings should be errors
  -b, --BuildNumber         (Default: -1) The build number (use BUILD_NUMBER envrionment variable)
  -s, --ReleaseSuffix       (Default: ) The release suffix
  -p, --Package             (Default: ) The package being released
  --help                    Display this help screen.
  --version                 Display version information.
Running without arguments

This will attempt to retrieve the build number (counter) from an environment variable:

  • BUILD_NUMBER (Set by CI tools like TeamCity)
dotnet buildversion
Running with release branches in format /release/version
dotnet buildversion --BuildNumber 272

or

dotnet buildversion --b272
Running with release branches in format /release-product/version
dotnet buildversion --BuildNumber 272 --ReleaseSuffix "product"

or

dotnet buildversion -b272  -s"product"
Running with release branches in format /release-product/package/version
dotnet buildversion --BuildNumber 272 --ReleaseSuffix "product" --Package "package"

or

dotnet buildversion -b272  -s"product" -p"package"
Running with release branches in format /release/package/version
dotnet buildversion --BuildNumber 272 --Package "package"

or

dotnet buildversion -b272 -p"package"

Integrations

TeamCity

  • Picks up the BUILD_NUMBER environment variable for the build number
  • If TEAMCITY_VERSION environment variable is defined then the system.build.version and buildNumber variables will be set to match the build version that the tool produces

GitHub Actions

  • If GITHUB_ENV environment variable is defined then the BUILD_VERSION environment variable will be set to match the build version that the tool produces.
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  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 is compatible.  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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
6.2.16.401-main 40 4/25/2024
6.2.16.400-main 70 4/24/2024
6.2.16.398-main 53 4/23/2024
6.2.16.397-main 66 4/23/2024
6.2.16.393-main 64 4/18/2024
6.2.16.390-main 60 4/18/2024
6.2.16.389-main 50 4/16/2024
6.2.16.388-main 55 4/16/2024
6.2.16.386-main 51 4/15/2024
6.2.16.383-main 50 4/10/2024
6.2.16.382-main 49 4/10/2024
6.2.16.381-main 47 4/10/2024
6.2.16.380-main 42 4/10/2024
6.2.16.379-main 52 4/10/2024
6.2.16.378-main 48 4/10/2024
6.2.16.377-dotnet-sdk-8-0 37 4/10/2024
6.2.16.376-main 60 4/8/2024
6.2.16.375-main 51 4/8/2024
6.2.16.374-main 56 4/7/2024
6.2.16.373-main 53 4/7/2024
6.2.16.372-main 61 4/7/2024
6.2.16.371-main 54 4/7/2024
6.2.16.370-main 60 4/3/2024
6.2.16.368-main 47 4/2/2024
6.2.16.367-main 38 4/2/2024
6.2.16.366-main 38 4/2/2024
6.2.16.365-main 56 3/30/2024
6.2.16.364-main 45 3/29/2024
6.2.16.363-main 57 3/27/2024
6.2.16.361-main 54 3/26/2024
6.2.16.360-main 48 3/26/2024
6.2.16.359-main 59 3/25/2024
6.2.16.358-main 63 3/25/2024
6.2.16.355-main 54 3/25/2024
6.2.16.352-main 57 3/25/2024
6.2.16.351-main 62 3/20/2024
6.2.16.350-main 62 3/20/2024
6.2.16.349-main 58 3/20/2024
6.2.16.348-main 49 3/20/2024
6.2.16.347-main 52 3/19/2024
6.2.16.346-main 50 3/19/2024
6.2.16.344-main 53 3/19/2024
6.2.16.343-main 49 3/14/2024
6.2.16.341-main 56 3/8/2024
6.2.16.340-main 60 3/8/2024
6.2.16.338-main 45 3/7/2024
6.2.16.337-main 57 3/7/2024
6.2.16.336-main 62 3/4/2024
6.2.16.335-main 55 2/27/2024
6.2.16.334-main 58 2/27/2024
6.2.16.333-main 49 2/26/2024
6.2.16.332-main 46 2/26/2024
6.2.16.331-main 49 2/26/2024
6.2.16.330-main 54 2/25/2024
6.2.16.329-main 46 2/25/2024
6.2.16.327-main 50 2/25/2024
6.2.16.326-main 53 2/25/2024
6.2.16.325-main 48 2/25/2024
6.2.16.324-main 55 2/25/2024
6.2.16.323-main 42 2/24/2024
6.2.16.322-main 62 2/20/2024
6.2.16.321-main 60 2/20/2024
6.2.16.320-main 55 2/20/2024
6.2.16.319-main 56 2/19/2024
6.2.16.317-main 71 2/12/2024
6.2.16.316-main 62 2/12/2024
6.2.16.315-main 45 2/12/2024
6.2.16.314-main 60 2/11/2024
6.2.16.313-main 62 2/9/2024
6.2.16.312-main 61 2/9/2024
6.2.16.311-update-funfair 51 2/9/2024
6.2.16.310-update-funfair 57 2/9/2024
6.2.16.309-main 60 2/8/2024
6.2.16.308-main 52 2/8/2024
6.2.16.305-main 55 2/7/2024
6.2.16.304-main 57 2/7/2024
6.2.16.303-main 54 2/7/2024
6.2.16.302-main 54 2/7/2024
6.2.16.301-main 54 2/6/2024
6.2.16.300-main 56 2/6/2024
6.2.16.299-main 58 2/6/2024
6.2.16.298-main 69 2/5/2024
6.2.16.297-main 64 2/5/2024
6.2.16.296-main 64 1/31/2024
6.2.16.295-main 55 1/31/2024
6.2.16.293-main 60 1/30/2024
6.2.16.292-main 62 1/29/2024
6.2.16.291-build 59 1/29/2024
6.2.16.290-build 56 1/29/2024
6.2.16.289-build 56 1/29/2024
6.2.16.288-build 57 1/29/2024
6.2.16.287-build 51 1/29/2024
6.2.16.286-main 56 1/29/2024
6.2.16.285-main 58 1/27/2024
6.2.16.284-main 62 1/26/2024
6.2.16.283-main 61 1/25/2024
6.2.16.282-main 52 1/24/2024
6.2.16.281-main 63 1/23/2024
6.2.16.280-main 62 1/17/2024
6.2.16.279-main 64 1/16/2024
6.2.16.278-main 57 1/15/2024
6.2.16.277-main 66 1/15/2024
6.2.16.276-main 56 1/15/2024
6.2.16.275-main 70 1/14/2024
6.2.16.274-main 70 1/13/2024
6.2.16.273-main 70 1/13/2024
6.2.16.272-main 74 1/10/2024
6.2.16.271-main 73 1/9/2024
6.2.16.270-main 85 1/7/2024
6.2.16.269-main 81 1/6/2024
6.2.16.268-main 80 1/6/2024
6.2.16.266-main 71 1/5/2024
6.2.16.265-main 82 1/5/2024
6.2.16.264-main 75 1/5/2024
6.2.16.263-main 83 1/5/2024
6.2.16.262-main 82 1/5/2024
6.2.16.261-main 71 1/5/2024
6.2.16.260-main 69 1/4/2024
6.2.16.259-main 80 1/4/2024
6.2.16.258-main 73 1/2/2024
6.2.16.256-main 81 12/30/2023
6.2.16.255-main 74 12/30/2023
6.2.16.254-main 89 12/28/2023
6.2.16.253-main 90 12/28/2023
6.2.16.252-main 72 12/26/2023
6.2.16.251-main 74 12/26/2023
6.2.15.250 178 12/24/2023
6.2.15.249-main 105 12/24/2023
6.2.15.248-main 107 12/23/2023
6.2.15.247-main 102 12/23/2023
6.2.15.246-main 98 12/23/2023
6.2.15.245-main 101 12/23/2023
6.2.15.244-main 94 12/23/2023
6.2.15.243-main 100 12/23/2023
6.2.15.242-main 98 12/23/2023
6.2.15.241-main 101 12/23/2023
6.2.15.240-main 94 12/21/2023
6.2.15.239-main 86 12/21/2023
6.2.15.238-main 92 12/21/2023