Chrono.DotnetTasks 1.0.0-rc.6

This is a prerelease version of Chrono.DotnetTasks.
There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Chrono.DotnetTasks" Version="1.0.0-rc.6">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Chrono.DotnetTasks" Version="1.0.0-rc.6" />
                    
Directory.Packages.props
<PackageReference Include="Chrono.DotnetTasks">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Chrono.DotnetTasks --version 1.0.0-rc.6
                    
#r "nuget: Chrono.DotnetTasks, 1.0.0-rc.6"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Chrono.DotnetTasks@1.0.0-rc.6
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Chrono.DotnetTasks&version=1.0.0-rc.6&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Chrono.DotnetTasks&version=1.0.0-rc.6&prerelease
                    
Install as a Cake Tool

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.

There are no supported framework assets in this package.

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