Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kemyke/cake.nuget.versioning

Contains functionality for creating Nuget compatible version numbers.
https://github.com/kemyke/cake.nuget.versioning

cake nuget semver versioning

Last synced: 3 days ago
JSON representation

Contains functionality for creating Nuget compatible version numbers.

Awesome Lists containing this project

README

        

# Cake.Nuget.Versioning

## Summary

Contains functionality for creating Nuget compatible version numbers.
Create nuget compatible version from the parameters. If branch names and other settings are provided it created a valid suffix for the version.
You can't just use the current branch name because it can be too long or starts with numbers. You can trim string from the branch name to create more readable versions.

## Usage

```
#addin "nuget:?package=Cake.Nuget.Versioning"

var fullVersion = BuildNugetVersionFromBranch(major, minor, patch, new BuildNugetVersionFromBranchSettings { BranchName = gitBranch, TrimPatterns = new[] { "feature/" }});
```