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" />
<PackageReference Include="Versioner" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Versioner&version=0.4.9
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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)
mainbranch that has an action that on opening a PR:- pushes a
Debugbuild to github packages
- pushes a
mainbranch that has an action that on push:main-push.yml- push into main
- pushes a
Releasebuild to nuget
Status
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.ymlmain-push.ymlmain-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.gitignorefile.
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 | Versions 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.
-
net7.0
- Floatingman.Common (>= 0.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.