FunFair.BuildVersion.GitTagBuildNumber 6.2.17.1308-main

This is a prerelease version of FunFair.BuildVersion.GitTagBuildNumber.
There is a newer version of this package available.
See the version list below for details.
dotnet add package FunFair.BuildVersion.GitTagBuildNumber --version 6.2.17.1308-main
                    
NuGet\Install-Package FunFair.BuildVersion.GitTagBuildNumber -Version 6.2.17.1308-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.GitTagBuildNumber" Version="6.2.17.1308-main" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="FunFair.BuildVersion.GitTagBuildNumber" Version="6.2.17.1308-main" />
                    
Directory.Packages.props
<PackageReference Include="FunFair.BuildVersion.GitTagBuildNumber" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add FunFair.BuildVersion.GitTagBuildNumber --version 6.2.17.1308-main
                    
#r "nuget: FunFair.BuildVersion.GitTagBuildNumber, 6.2.17.1308-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.
#addin nuget:?package=FunFair.BuildVersion.GitTagBuildNumber&version=6.2.17.1308-main&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=FunFair.BuildVersion.GitTagBuildNumber&version=6.2.17.1308-main&prerelease
                    
Install as a Cake Tool

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 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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.18.1505-main 9 7/3/2025
6.2.18.1504-main 9 7/2/2025
6.2.18.1502-main 9 7/2/2025
6.2.18.1500-main 10 7/1/2025
6.2.18.1499-main 9 7/1/2025
6.2.18.1498-main 10 7/1/2025
6.2.18.1496-main 13 6/30/2025
6.2.18.1495-main 11 6/30/2025
6.2.18.1493-main 10 6/29/2025
6.2.18.1492-main 23 6/27/2025
6.2.18.1491-main 74 6/27/2025
6.2.18.1489-main 81 6/26/2025
6.2.18.1488-main 85 6/26/2025
6.2.18.1485-main 99 6/25/2025
6.2.18.1484-main 98 6/25/2025
6.2.18.1483-main 112 6/24/2025
6.2.18.1480-main 123 6/24/2025
6.2.18.1479-main 122 6/23/2025
6.2.18.1478-main 122 6/23/2025
6.2.18.1477-main 126 6/23/2025
6.2.18.1476-main 123 6/23/2025
6.2.18.1475-main 125 6/23/2025
6.2.18.1474-main 122 6/23/2025
6.2.18.1473-main 85 6/22/2025
6.2.18.1472-main 85 6/22/2025
6.2.18.1471-main 87 6/22/2025
6.2.18.1470-main 87 6/22/2025
6.2.18.1469-main 88 6/22/2025
6.2.18.1468-main 89 6/21/2025
6.2.18.1467-main 89 6/21/2025
6.2.18.1466-main 88 6/21/2025
6.2.18.1465-main 90 6/21/2025
6.2.18.1464-main 55 6/21/2025
6.2.18.1463-main 58 6/20/2025
6.2.18.1462-main 71 6/20/2025
6.2.18.1461-main 88 6/20/2025
6.2.18.1460-main 97 6/20/2025
6.2.18.1459-main 119 6/20/2025
6.2.18.1457-main 126 6/19/2025
6.2.18.1456-main 129 6/19/2025
6.2.18.1455-main 126 6/19/2025
6.2.18.1454-main 126 6/19/2025
6.2.18.1453-main 123 6/19/2025
6.2.18.1452-main 124 6/19/2025
6.2.18.1451-main 123 6/19/2025
6.2.18.1450-update-sonarana 130 6/19/2025
6.2.18.1449-update-sonarana 125 6/19/2025
6.2.18.1448-main 125 6/19/2025
6.2.18.1446-main 124 6/19/2025
6.2.18.1445-update-sonarana 126 6/19/2025
6.2.18.1444-main 125 6/19/2025
6.2.18.1443-main 124 6/19/2025
6.2.18.1442-main 124 6/18/2025
6.2.18.1438-main 128 6/18/2025
6.2.18.1437-main 128 6/18/2025
6.2.18.1436-sdk-dotnet-10-p 128 6/17/2025
6.2.18.1435-sdk-dotnet-10-p 125 6/17/2025
6.2.18.1434-main 124 6/17/2025
6.2.18.1432-main 128 6/16/2025
6.2.18.1431-main 129 6/16/2025
6.2.18.1430-main 186 6/13/2025
6.2.18.1429-main 187 6/13/2025
6.2.18.1427-main 251 6/13/2025
6.2.18.1426-main 271 6/13/2025
6.2.18.1425-main 265 6/12/2025
6.2.18.1424-main 273 6/12/2025
6.2.18.1423-main 273 6/12/2025
6.2.18.1422-main 270 6/12/2025
6.2.18.1421-main 271 6/12/2025
6.2.18.1420-update-credfeto 267 6/12/2025
6.2.18.1419-main 269 6/12/2025
6.2.18.1418-main 271 6/12/2025
6.2.18.1416-main 272 6/11/2025
6.2.18.1415-main 276 6/11/2025
6.2.18.1414-main 270 6/11/2025
6.2.18.1413-main 270 6/11/2025
6.2.18.1412-main 270 6/10/2025
6.2.18.1411-main 272 6/10/2025
6.2.18.1410-main 275 6/10/2025
6.2.18.1409-main 275 6/10/2025
6.2.18.1408-main 263 6/10/2025
6.2.18.1407-main 249 6/9/2025
6.2.18.1406-main 233 6/9/2025
6.2.18.1405-main 212 6/9/2025
6.2.18.1404-main 181 6/8/2025
6.2.18.1403-main 178 6/8/2025
6.2.18.1402-main 195 6/8/2025
6.2.18.1401-main 99 6/8/2025
6.2.18.1400-main 100 6/8/2025
6.2.18.1399-main 100 6/7/2025
6.2.18.1398-main 58 6/7/2025
6.2.18.1397-main 57 6/7/2025
6.2.18.1396-main 62 6/7/2025
6.2.18.1395-main 65 6/7/2025
6.2.18.1394-main 73 6/6/2025
6.2.18.1393-main 90 6/6/2025
6.2.18.1392-main 119 6/6/2025
6.2.18.1390-main 133 6/5/2025
6.2.18.1389-main 132 6/5/2025
6.2.18.1388-main 131 6/5/2025
6.2.18.1387-main 128 6/5/2025
6.2.18.1386-main 132 6/4/2025
6.2.18.1385-main 134 6/4/2025
6.2.18.1384-main 124 6/4/2025
6.2.18.1383-main 131 6/3/2025
6.2.18.1382-main 124 6/3/2025
6.2.18.1381-main 129 6/3/2025
6.2.18.1380-main 130 6/3/2025
6.2.18.1379-main 131 6/3/2025
6.2.18.1378-main 140 6/2/2025
6.2.18.1377-main 128 6/2/2025
6.2.18.1376-main 125 6/2/2025
6.2.17.1375 134 6/2/2025
6.2.17.1374-main 131 6/2/2025
6.2.17.1373-main 128 6/2/2025
6.2.17.1371-main 134 6/1/2025
6.2.17.1370-main 132 6/1/2025
6.2.17.1369-main 128 6/1/2025
6.2.17.1367-main 90 5/31/2025
6.2.17.1366-main 88 5/31/2025
6.2.17.1365-main 58 5/31/2025
6.2.17.1364-main 56 5/31/2025
6.2.17.1363-main 71 5/30/2025
6.2.17.1362-main 96 5/30/2025
6.2.17.1361-main 100 5/30/2025
6.2.17.1360-main 137 5/30/2025
6.2.17.1359-main 133 5/29/2025
6.2.17.1358-main 135 5/29/2025
6.2.17.1357-main 130 5/29/2025
6.2.17.1356-main 131 5/29/2025
6.2.17.1355-main 134 5/28/2025
6.2.17.1354-main 129 5/28/2025
6.2.17.1353-main 127 5/28/2025
6.2.17.1352-main 132 5/28/2025
6.2.17.1350-main 133 5/27/2025
6.2.17.1349-main 130 5/27/2025
6.2.17.1348-main 132 5/27/2025
6.2.17.1347-main 132 5/27/2025
6.2.17.1345-main 130 5/26/2025
6.2.17.1344-main 136 5/26/2025
6.2.17.1343-main 131 5/26/2025
6.2.17.1342-main 130 5/26/2025
6.2.17.1341-main 136 5/25/2025
6.2.17.1340-main 134 5/25/2025
6.2.17.1339-main 134 5/25/2025
6.2.17.1338-main 88 5/24/2025
6.2.17.1337-main 83 5/24/2025
6.2.17.1336-main 57 5/24/2025
6.2.17.1335-main 54 5/24/2025
6.2.17.1334-main 59 5/24/2025
6.2.17.1333-sdk-dotnet-10-p 134 5/22/2025
6.2.17.1332-sdk-dotnet-10-p 135 5/22/2025
6.2.17.1331-main 130 5/22/2025
6.2.17.1330-main 132 5/21/2025
6.2.17.1329-main 134 5/21/2025
6.2.17.1328-main 133 5/21/2025
6.2.17.1327-main 134 5/21/2025
6.2.17.1326-main 139 5/20/2025
6.2.17.1324-main 136 5/20/2025
6.2.17.1323-main 133 5/20/2025
6.2.17.1321-main 133 5/19/2025
6.2.17.1320-main 130 5/19/2025
6.2.17.1319-main 139 5/19/2025
6.2.17.1318-main 137 5/19/2025
6.2.17.1317-main 128 5/18/2025
6.2.17.1316-main 134 5/18/2025
6.2.17.1315-main 89 5/18/2025
6.2.17.1314-main 90 5/17/2025
6.2.17.1313-main 93 5/17/2025
6.2.17.1312-main 96 5/17/2025
6.2.17.1311-main 116 5/17/2025
6.2.17.1310-main 121 5/17/2025
6.2.17.1309-main 154 5/16/2025
6.2.17.1308-main 165 5/16/2025
6.2.17.1307-main 201 5/16/2025
6.2.17.1306-main 214 5/15/2025
6.2.17.1305-main 211 5/15/2025
6.2.17.1304-main 212 5/15/2025
6.2.17.1302-main 214 5/14/2025
6.2.17.1301-main 212 5/14/2025
6.2.17.1300-main 213 5/14/2025
6.2.17.1299-main 215 5/14/2025
6.2.17.1298-update-microsof 215 5/14/2025
6.2.17.1297-main 217 5/14/2025
6.2.17.1296-update-microsof 217 5/14/2025
6.2.17.1295-dotnet-sdk-9-0 211 5/14/2025
6.2.17.1294-main 217 5/14/2025
6.2.17.1292-main 214 5/13/2025
6.2.17.1291-main 238 5/13/2025
6.2.17.1290-main 219 5/13/2025
6.2.17.1289-main 218 5/13/2025
6.2.17.1288-main 217 5/12/2025
6.2.17.1287-main 223 5/12/2025
6.2.17.1286-main 217 5/12/2025
6.2.17.1285-main 127 5/9/2025
6.2.17.1284-main 122 5/9/2025
6.2.17.1282-main 133 5/8/2025
6.2.17.1281-main 141 5/8/2025
6.2.17.1280-update-funfair 131 5/8/2025
6.2.17.1277-main 136 5/7/2025
6.2.17.1276-main 132 5/7/2025
6.2.17.1273-main 97 5/4/2025
6.2.17.1272-main 93 5/3/2025
6.2.17.1271-main 59 5/3/2025
6.2.17.1270-main 134 5/1/2025
6.2.17.1269-main 147 5/1/2025
6.2.17.1267-main 136 4/30/2025
6.2.17.1266-main 140 4/29/2025
6.2.17.1265-main 136 4/29/2025
6.2.17.1260-main 143 4/28/2025
6.2.17.1259-main 141 4/27/2025
6.2.17.1258-main 145 4/27/2025
6.2.17.1257-main 124 4/27/2025
6.2.17.1255-main 131 4/27/2025
6.2.17.1253-main 124 4/27/2025
6.2.17.1251-main 136 4/27/2025
6.2.17.1249-main 126 4/27/2025
6.2.17.1247-main 130 4/27/2025
6.2.17.1245-main 120 4/27/2025
6.2.17.1243-main 126 4/27/2025
6.2.17.1241-main 125 4/27/2025
6.2.17.1239-main 122 4/27/2025
6.2.17.1237-main 118 4/27/2025
6.2.17.1235-main 126 4/27/2025
6.2.17.1233-main 120 4/27/2025
6.2.17.1231-main 127 4/27/2025
6.2.17.1229-main 123 4/27/2025
6.2.17.1227-main 134 4/27/2025
6.2.17.1225-main 124 4/27/2025
6.2.17.1223-main 135 4/27/2025
6.2.17.1221-main 124 4/27/2025
6.2.17.1219-main 95 4/26/2025
6.2.17.1217-main 93 4/26/2025
6.2.17.1215-main 72 4/26/2025
6.2.17.1214-update-csharpie 69 4/26/2025
6.2.17.1212-update-csharpie 76 4/26/2025
6.2.17.1211-main 91 4/25/2025
6.2.17.1210-main 106 4/25/2025
6.2.17.1209-main 106 4/25/2025
6.2.17.1208-main 135 4/25/2025
6.2.17.1206-main 141 4/25/2025
6.2.17.1204-main 138 4/25/2025
6.2.17.1203-main 147 4/24/2025
6.2.17.1202-main 151 4/24/2025
6.2.17.1201-main 153 4/22/2025
6.2.17.1200-update-csharpie 148 4/22/2025
6.2.17.1199-main 142 4/22/2025
6.2.17.1198-main 148 4/22/2025
6.2.17.1197-main 145 4/22/2025
6.2.17.1196-main 150 4/22/2025
6.2.17.1195-main 156 4/21/2025
6.2.17.1194-main 150 4/21/2025
6.2.17.1193-main 150 4/21/2025
6.2.17.1192-main 150 4/21/2025
6.2.17.1191-main 157 4/20/2025
6.2.17.1190-update-credfeto 75 4/19/2025
6.2.17.1189-main 70 4/19/2025
6.2.17.1188-main 80 4/19/2025
6.2.17.1187-main 77 4/19/2025
6.2.17.1186-main 184 4/16/2025
6.2.17.1185-main 180 4/16/2025
6.2.17.1184-main 185 4/16/2025
6.2.17.1183-main 181 4/16/2025
6.2.17.1182-main 180 4/16/2025
6.2.17.1181-main 184 4/15/2025
6.2.17.1180-main 181 4/15/2025
6.2.17.1179-main 188 4/14/2025
6.2.17.1178-main 121 4/12/2025
6.2.17.1177-main 118 4/12/2025
6.2.17.1176-main 82 4/12/2025
6.2.17.1175-main 82 4/12/2025
6.2.17.1174-main 81 4/12/2025
6.2.17.1173-main 79 4/12/2025
6.2.17.1172-main 91 4/11/2025
6.2.17.1171-main 113 4/11/2025
6.2.17.1170-main 126 4/11/2025