mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-09-30 23:02:48 +02:00
10 lines
320 B
C#
10 lines
320 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(oldChar: '+', newChar: '-') ?? string.Empty;
|
|
}
|
|
}
|