tgstation-server 6.12.0
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
7
9{
12 {
15
17 public Version Version { get; }
18
20 public AssemblyName AssemblyName { get; }
21
23 public string Path { get; }
24
26 public string VersionString { get; }
27
31 Version.ToString());
32
37 {
38 Assembly assembly = Assembly.GetExecutingAssembly();
39 Path = assembly.Location;
40 AssemblyName = assembly.GetName();
41 Version = AssemblyName.Version!.Semver();
42 VersionString = String.Concat(VersionPrefix, "-v", Version);
43 }
44 }
45}
const string CanonicalPackageName
The name of the project.
Definition Constants.cs:11
AssemblyName AssemblyName
Gets the global::System.Reflection.AssemblyName.
ProductInfoHeaderValue ProductInfoHeaderValue
The ProductInfoHeaderValue for the assembly.
AssemblyInformationProvider()
Initializes a new instance of the AssemblyInformationProvider class.