HAKOM.Versioning.Core.Net.Api Namespace
Contains the public API surface of the HAKOM versioning module.
Remarks
Section titled “Remarks”This namespace defines the primary abstractions for working with software versions:
- IVersion — Describes a version of a piece of software. Supports comparison, equality, compatibility checking, pre-release detection, and range matching.
- IVersionFactory — Creates IVersion instances from version strings or System.Reflection.Assembly metadata.
- IVersionProvider — Provides all versions available within the current application context.
The factory supports both SemVer 2.0 strings (e.g. 4.3.1-beta.2+build.42) and
legacy four-part version strings (e.g. 4.3.0.12345). Wildcard segments are
supported for version range matching:
IVersionFactory factory = container.Get<IVersionFactory>();
IVersion range = factory.Create("4.*.*");IVersion exact = factory.Create("4.3.1");
bool compatible = range.IsCompatibleWith(exact); // true| Interfaces | |
|---|---|
| IVersion | Describes the version of a piece of software. |
| IVersionFactory | Used to create instances of IVersion. |
| IVersionProvider | Provides a list of versions available within an application context. |
Was this page helpful?Thanks for your feedback!