Info
Version: | 0.2.0-pre-4 |
Author(s): | Heath Stewart |
Last Update: | Thursday, March 8, 2018 |
.NET Fiddle: | Create the first Fiddle |
NuGet Url: | https://www.nuget.org/packages/Build.Versioning |
Install
Install-Package Build.Versioning
dotnet add package Build.Versioning
paket add Build.Versioning
Build.Versioning Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
The default pattern parses semantic version tags, but you can override the pattern to parse version tags using your own format.
There are separate tasks to retrieve version properties such as MajorVersion, MinorVersion, PatchVersion, ReleaseVersion (pre, beta, etc.), BuildVersion, and Commit; and to generate a managed language-dependent source file with the 3 common assembly version attributes:
- AssemblyVersionAttribute
- AssemblyFileVersionAttribute
- AssemblyInformationalVersionAttribute
After installation, set the GenerateVersionInfo property to true and remove any assembly version attributes in your project(s).