Skip to content

Versioning

This package uses MinVer to derive its NuGet version from git tags at build time.

Git stateNuGet version
Tag v1.0.01.0.0
Tag v1.0.0 + 3 commits1.0.1-preview.0.3+abc1234
Tag v1.0.0-beta.11.0.0-beta.1
Tag v1.0.0-beta.1 + 2 commits1.0.0-beta.1.2+xyz5678
No tags0.1.0-preview.0.5+def9012
Terminal window
git checkout main
git pull
git tag -a v1.0.0 -m "Release v1.0.0"
git push origin v1.0.0

The publish-nuget.yml workflow runs on every published release and pushes the resulting package to NuGet.org via Trusted Publishing.

  • v1.0.0-alpha.1 — alpha
  • v1.0.0-beta.1 — beta
  • v1.0.0-rc.1 — release candidate
  • v1.0.0-preview.1 — preview
Terminal window
dotnet tool install --global minver-cli
minver
# → e.g. 0.2.1-preview.0.7+0123abc

MinVer is configured in src/IEvangelist.Aspire.Hosting.Netlify/IEvangelist.Aspire.Hosting.Netlify.csproj:

<PropertyGroup>
<MinVerTagPrefix>v</MinVerTagPrefix>
<MinVerMinimumMajorMinor>0.1</MinVerMinimumMajorMinor>
<MinVerDefaultPreReleaseIdentifiers>preview.0</MinVerDefaultPreReleaseIdentifiers>
</PropertyGroup>
  • Version shows 0.0.0. CI must have full git history. Use fetch-depth: 0 on actions/checkout.
  • Unexpected commit count. Expected for commits after a tag. Cut a fresh tag to publish a clean version.
  • Tags not recognised. Tags must follow v{major}.{minor}.{patch}.