Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to MinVer for versioning #24

Closed
Qonfused opened this issue Oct 10, 2024 · 0 comments
Closed

Switch to MinVer for versioning #24

Qonfused opened this issue Oct 10, 2024 · 0 comments
Labels
status:triage type:feature New feature or request

Comments

@Qonfused
Copy link
Member

Qonfused commented Oct 10, 2024

The MinVer project injects build properties based on the current git tag, which allows for controlling versions separately from commits. The idea is to simplify the CI process for releases while allowing for a custom patch/build height determined by CI. This is otherwise outside the scope of NBGV as of current (see dotnet/Nerdbank.GitVersioning#904).

Notably, any additional NuGet package properties can still be controlled programmatically:

<Target Name="MyTarget" AfterTargets="MinVer" Condition="'$(MinVerBuildMetadata)' != ''" >
  <PropertyGroup>
    <PackageVersion>$(PackageVersion)+$(MinVerBuildMetadata)</PackageVersion>
    <Version>$(PackageVersion)</Version>
  </PropertyGroup>
</Target>
@Qonfused Qonfused added type:feature New feature or request status:triage labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:triage type:feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant