Interface IGitVersion
- Namespace
- Invex.Atom.Module.GitVersion
- Assembly
- Invex.Atom.Module.GitVersion.dll
Enables GitVersion-based build identification and versioning for the build.
[ConfigureHostBuilder]
public interface IGitVersion
Remarks
Inheriting this interface on a build definition replaces the default
IBuildIdProvider and IBuildVersionProvider registrations with
implementations that derive the build ID and version from GitVersion
(https://gitversion.net), based on the repository's Git history and the
GitVersion.yml configuration.
Methods
ConfigureHostBuilderFromIGitVersion(IHostApplicationBuilder)
Configures the host builder to register the GitVersion-based build ID and version providers.
protected static void ConfigureHostBuilderFromIGitVersion(IHostApplicationBuilder builder)
Parameters
builderIHostApplicationBuilderThe host application builder.