Skip to content

Conversation

@vb2ae
Copy link
Owner

@vb2ae vb2ae commented Dec 14, 2024

This pull request includes the addition of versioning support using the Nerdbank.GitVersioning package. The changes involve updating project configuration files to include versioning metadata and package references.

Versioning Support:

  • Directory.Build.props: Added a PackageReference for Nerdbank.GitVersioning to manage versioning in the project.
  • version.json: Introduced a new file to define versioning schema and configuration for the project, including the version number, NuGet package versioning, and cloud build settings.

Closes #39

vb2ae added 10 commits December 13, 2024 11:57
Introduce versioning using Nerdbank.GitVersioning package.

In `Directory.Build.props`:
- Add XML declaration and `<Project>` element.
- Include `<PackageReference>` for `Nerdbank.GitVersioning` with condition.
- Set package version to `3.7.112` and `PrivateAssets` to `all`.

In `version.json`:
- Add JSON schema reference for `Nerdbank.GitVersioning`.
- Set version to `1.0-beta`.
- Specify branch patterns for public releases in `publicReleaseRefSpec`.
- Enable build number feature in `cloudBuild`.
The version.json file has been updated to include a new `nugetPackageVersion` section specifying the use of Semantic Versioning 2.0. The `publicReleaseRefSpec` section has been modified by removing a specific reference pattern and reordering the remaining patterns. The `cloudBuild` section has been enhanced to include settings for including the commit ID in build metadata for non-public releases. Additionally, a new property `setVersionVariables` has been added to the configuration.
Updated the `actions/checkout` step in `dotnet.yml` to use version 4.
Added `fetch-depth: 0` to ensure a full clone of the repository,
which is necessary for `nbgv` (Nerdbank.GitVersioning) to function
correctly.
@vb2ae vb2ae merged commit ede7c77 into master Dec 14, 2024
4 checks passed
@vb2ae vb2ae deleted the nerd-bank-version branch December 14, 2024 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use SimVersion to generate version number

2 participants