videre-project / MTGOSDK

A software development kit (SDK) for inspecting and interacting with the Magic: The Gathering Online (MTGO) client.
Apache License 2.0
9 stars 1 forks source link

Switch to MinVer for versioning #24

Closed Qonfused closed 6 days ago

Qonfused commented 1 month ago

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 https://github.com/dotnet/Nerdbank.GitVersioning/issues/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>