mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-07-05 20:18:15 +08:00
Move Spectre.Console.Cli to it's own package
This commit is contained in:

committed by
Patrik Svensson

parent
b600832e00
commit
36ca22ffac
11
src/Spectre.Console.Cli/Internal/VersionHelper.cs
Normal file
11
src/Spectre.Console.Cli/Internal/VersionHelper.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace Spectre.Console.Cli;
|
||||
|
||||
internal static class VersionHelper
|
||||
{
|
||||
public static string GetVersion(Assembly? assembly)
|
||||
{
|
||||
return assembly?
|
||||
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
|
||||
.InformationalVersion ?? "?";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user