mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-05 12:08:16 +08:00
11 lines
280 B
C#
11 lines
280 B
C#
namespace Spectre.Console.Cli;
|
|
|
|
internal static class VersionHelper
|
|
{
|
|
public static string GetVersion(Assembly? assembly)
|
|
{
|
|
return assembly?
|
|
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
|
|
.InformationalVersion ?? "?";
|
|
}
|
|
} |