Version your assemblies according to SemVer based on your VCS commit messages.
PM> Install-Package -Id SemVer.Git.MSBuild -pre --source https://www.myget.org/F/dittodhole/api/v2
PM> Install-Package -Id SemVer.Svn.MSBuild -pre --source https://www.myget.org/F/dittodhole/api/v2
PM> Install-Package -Id SemVer.Git.MSBuild
PM> Install-Package -Id SemVer.Svn.MSBuild
You can override following properties with Directory.Build.props
:
SemVerStamp_BreakingChangeFormat
(default:^perf(\(.*\))*:
)SemVerStamp_FeatureFormat
(default:^feat(\(.*\))*:
)SemVerStamp_PatchFormat
(default:^fix(\(.*\))*:
)SemVerStamp_BaseRevision
SemVerStamp_BaseVersion
(default:0.0.0
)SemVerStamp_SourcePath
(default:$(MSBuildProjectDirectory)
)SemVerStamp_Active
(default:true
on release builds, otherwisefalse
)
> git clone https://github.com/dittodhole/dotnet-SemVer.Stamp.git
> cd dotnet-SemVer.Stamp
dotnet-SemVer.Stamp> cd build
dotnet-SemVer.Stamp/build> build.bat
This will create the following artifacts:
artifacts/SemVer.Git.MSBuild.{version}.nupkg
artifacts/SemVer.Svn.MSBuild.{version}.nupkg
dotnet-SemVer.Stamp is published under WTFNMFPLv3.
Cyclops by Mike Hince from the Noun Project.