Chrono.DotnetTasks
1.0.0
dotnet add package Chrono.DotnetTasks --version 1.0.0
NuGet\Install-Package Chrono.DotnetTasks -Version 1.0.0
<PackageReference Include="Chrono.DotnetTasks" Version="1.0.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Chrono.DotnetTasks" Version="1.0.0" />
<PackageReference Include="Chrono.DotnetTasks"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Chrono.DotnetTasks --version 1.0.0
#r "nuget: Chrono.DotnetTasks, 1.0.0"
#:package Chrono.DotnetTasks@1.0.0
#addin nuget:?package=Chrono.DotnetTasks&version=1.0.0
#tool nuget:?package=Chrono.DotnetTasks&version=1.0.0
Chrono.DotnetTasks
📚 About
Chrono is a git versioning tool with a focus on being customizable and easy to configure.
Based on your configured templates it easily retrieves version information based on the current state or your repo.
It provides a CLI and a NugetPackage for automatic version stamping.
The DotnetTasks project contains a MSBuild task that hooks into the build process and automatically sets the version of your project according to the version.yml file.
🚀 Getting started
Create a version.yml For the content of version.yml either checkout the default example below.
version: 1.0.0.0
default:
versionSchema: '{major}.{minor}.{patch}.{build}[-]{branch}[.]{commitShortHash}'
precision: build
prereleaseTag: dev
release:
match:
- ^release/.*
versionSchema: '{major}.{minor}.{patch}'
or read the full documentation.
🕹️ ️Automatic Version stamping (dotnet)
Prerequisites:
- dotnet 6.0+ or .NET Framework 4.7.2+
- SDK style project files
- No existing AssemblyVersion.cs files or the likes present
- A version.yml file in the root of your git repo
If you have the cli tool installed you can run
chrono init
in your project root.
This adds a Directory.Build.props file to the directory which takes care of including the DotnetTasks package into your projects.
with the following content:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PackageReference Include="Chrono.DotnetTasks" Condition="!Exists('packages.config')" Version="{yourInstalledChronoVersion}" PrivateAssets="all"/>
</ItemGroup>
<PropertyGroup>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
</PropertyGroup>
</Project>
This ensures that every project includes the DotnetTasks project and also sets some interfering properties to false.
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- No dependencies.
-
net6.0
- No dependencies.
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 |
---|---|---|
1.0.0 | 182 | 4/21/2025 |
1.0.0-rc.8 | 181 | 4/14/2025 |
1.0.0-rc.7 | 746 | 3/4/2025 |
1.0.0-rc.6 | 165 | 3/1/2025 |
1.0.0-rc.5 | 93 | 2/28/2025 |
1.0.0-rc.4 | 115 | 2/18/2025 |
1.0.0-rc.2 | 106 | 2/17/2025 |
1.0.0-rc.1 | 147 | 11/4/2024 |
0.10.0 | 173 | 10/20/2024 |
0.6.0 | 401 | 6/2/2024 |
0.5.0 | 277 | 5/31/2024 |