NuGet package versioning is generated with GitVersion through the standard repository-local tool manifest at .config/dotnet-tools.json.
From the repository root:
dotnet tool restore
dotnet tool run dotnet-gitversion /output json /showvariable SemVer /nonormalizeThat command returns the semantic version used for BitNetSharp.Core and the BitNetSharp.App .NET tool package.
The Azure DevOps main pipeline at /azure-pipelines.yml restores, builds, tests, and packs on main and pull requests.
When you push a tag that matches v* or V*, the same pipeline also:
- Packs both NuGet artifacts with the GitVersion-generated semantic version
- Publishes the generated
.nupkgfiles as Azure Pipeline artifacts - Pushes the packages to the NuGet feed configured by the
NuGetFeedUrlpipeline variable
If the target feed requires an API key, store it as the secret pipeline variable NuGetApiKey. For same-organization Azure Artifacts feeds, the pipeline can authenticate with NuGetAuthenticate@1 and the build identity without an extra key.
This keeps prerelease CI artifacts available for inspection while reserving feed publication for explicit version tags. See Azure DevOps pipelines for the exact variables and cutover notes.