tgstation-server  4.3.2
The /tg/station 13 server suite
AssemblyInformationProvider.cs
Go to the documentation of this file.
1 using System;
2 using System.Reflection;
3 using Tgstation.Server.Api;
4 
5 namespace Tgstation.Server.Host.System
6 {
9  {
11  public string VersionPrefix => "tgstation-server";
12 
14  public Version Version { get; }
15 
17  public AssemblyName Name { get; }
18 
20  public string Path { get; }
21 
23  public string VersionString { get; }
24 
29  {
30  Assembly assembly = Assembly.GetExecutingAssembly();
31  Path = assembly.Location;
32  Name = assembly.GetName();
33  Version = Name.Version.Semver();
34  VersionString = String.Concat(VersionPrefix, '-', Version);
35  }
36  }
37 }
AssemblyInformationProvider()
Initializes a new instance of the AssemblyInformationProvider .