Versioner 0.4.9

dotnet add package Versioner --version 0.4.9
                    
NuGet\Install-Package Versioner -Version 0.4.9
                    
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="Versioner" Version="0.4.9" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Versioner" Version="0.4.9" />
                    
Directory.Packages.props
<PackageReference Include="Versioner" />
                    
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 Versioner --version 0.4.9
                    
#r "nuget: Versioner, 0.4.9"
                    
#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 Versioner@0.4.9
                    
#: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=Versioner&version=0.4.9
                    
Install as a Cake Addin
#tool nuget:?package=Versioner&version=0.4.9
                    
Install as a Cake Tool

Setting up CI pipeline for a DotNet/GitHub project

  • every branch has an action that on push:
    • ci.yml
    • CI
    • builds
    • tests
    • publishes coverage (to coveralls)
  • main branch that has an action that on opening a PR:
    • pushes a Debug build to github packages
  • main branch that has an action that on push:
    • main-push.yml
    • push into main
    • pushes a Release build to nuget

Status

Coverage Status BSD 1 Clause License Nuget GitHub release (with filter)

Tools in Play

Setup Initial DotNet

  • dotnet core just because that's what it is
dotnet new sln --name Versioner
dotnet new classlib --name Versioner
dotnet new xunit --name Versioner.Tests
dotnet new console --name Versoner.Usage

dotnet sln add Versioner
dotnet sln add Versioner.Tests
dotnet sln add Versioner.Usage

Update the .gitignore file to include the default .dotnet stuff.

Actions

We brought in three github action definition files.

  • any-push.yml
  • main-push.yml
  • main-pr.yml

They pretty much cover off the goals from above.

Configuring the Build

Let's add the Floatingman.Common to the project - later on we'll try to use alpha packages, but not today.

dotnet add Versioner package Floatingman.Common

Configuring the Tests

Setup the tooling to generate coverage.info file.

dotnet add Versioner.Tests package coverlet.msbuild

Don't forget to add the TestResults/ to the .gitignore file.

Versioning

dotnet tool install --global nbgv
export PATH="$PATH:/home/vscode/.dotnet/tools"
nbgv install

Added Bonus

Adding a script that makes it dificult to accidentally push into main / master / something else.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.4.9 248 9/8/2023
0.4.4 200 9/7/2023
0.3.13 196 9/2/2023