tgstation-server 5.12.1
The /tg/station 13 server suite
Loading...
Searching...
No Matches
AssemblyInformationProvider.cs
Go to the documentation of this file.
1using System;
2using System.Net.Http.Headers;
3using System.Reflection;
4
6
8{
11 {
13 public string VersionPrefix => "tgstation-server";
14
16 public Version Version { get; }
17
19 public AssemblyName AssemblyName { get; }
20
22 public string Path { get; }
23
25 public string VersionString { get; }
26
30 Version.ToString());
31
36 {
37 Assembly assembly = Assembly.GetExecutingAssembly();
38 Path = assembly.Location;
39 AssemblyName = assembly.GetName();
40 Version = AssemblyName.Version.Semver();
41 VersionString = String.Concat(VersionPrefix, "-v", Version);
42 }
43 }
44}
AssemblyName AssemblyName
Gets the global::System.Reflection.AssemblyName.
ProductInfoHeaderValue ProductInfoHeaderValue
The ProductInfoHeaderValue for the assembly.
string Path
Gets the path to the executing assembly.
AssemblyInformationProvider()
Initializes a new instance of the AssemblyInformationProvider class.