Chrono.DotnetTasks
1.0.0-rc.6
See the version list below for details.
dotnet add package Chrono.DotnetTasks --version 1.0.0-rc.6
NuGet\Install-Package Chrono.DotnetTasks -Version 1.0.0-rc.6
<PackageReference Include="Chrono.DotnetTasks" Version="1.0.0-rc.6"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="Chrono.DotnetTasks" Version="1.0.0-rc.6" />
<PackageReference Include="Chrono.DotnetTasks"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add Chrono.DotnetTasks --version 1.0.0-rc.6
#r "nuget: Chrono.DotnetTasks, 1.0.0-rc.6"
#:package Chrono.DotnetTasks@1.0.0-rc.6
#addin nuget:?package=Chrono.DotnetTasks&version=1.0.0-rc.6&prerelease
#tool nuget:?package=Chrono.DotnetTasks&version=1.0.0-rc.6&prerelease
Chrono.DotnetTasks
📚 About
Chrono is a git versioning tool with a focus on being customizable and easy to configure.
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.
Chrono is inspired by the likes of GitVersion and Nerdbank.GitVersioning.
🚀 Getting started
Create a version.yml (for now only a version.yml at the root of your git repo is supported)
For the content of version.yml either checkout the minimal example below.
version: 1.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 | 173 | 4/21/2025 |
1.0.0-rc.8 | 176 | 4/14/2025 |
1.0.0-rc.7 | 628 | 3/4/2025 |
1.0.0-rc.6 | 161 | 3/1/2025 |
1.0.0-rc.5 | 89 | 2/28/2025 |
1.0.0-rc.4 | 111 | 2/18/2025 |
1.0.0-rc.2 | 102 | 2/17/2025 |
1.0.0-rc.1 | 143 | 11/4/2024 |
0.10.0 | 169 | 10/20/2024 |
0.6.0 | 396 | 6/2/2024 |
0.5.0 | 272 | 5/31/2024 |