10 lines
302 B
C#
10 lines
302 B
C#
using System.Reflection;
|
|
|
|
namespace Phantom.Utils.Runtime;
|
|
|
|
public static class AssemblyAttributes {
|
|
public static string GetFullVersion(Assembly assembly) {
|
|
return assembly.GetCustomAttribute<AssemblyInformationalVersionAttribute>()?.InformationalVersion.Replace('+', '-') ?? string.Empty;
|
|
}
|
|
}
|