Table of Contents

Class VersionHelper

Namespace
OpenSettings.Helpers
Assembly
OpenSettings.dll

Provides helper methods for parsing version strings and calculating version scores. Supports both stable versions and preview versions, and helps to compare versions.

public static class VersionHelper
Inheritance
VersionHelper
Inherited Members

Methods

GetPackInfo(Assembly)

Retrieves version information from an assembly, including its version score and whether it's a preview version. Extracts the version from the assembly's informational version attribute.

public static PackInfo GetPackInfo(this Assembly assembly)

Parameters

assembly Assembly

The assembly from which to retrieve the version information.

Returns

PackInfo

A tuple containing the pack version string, the pack version's score (long), and a boolean indicating if it's a preview version.

Exceptions

ArgumentException

Thrown if the version format is invalid or no version is found.