RegName – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | using System; |
2 | using System.IO; |
||
3 | using System.Reflection; |
||
4 | using System.Runtime.InteropServices; |
||
5 | |||
6 | namespace RegName |
||
7 | { |
||
8 | public static class Constants |
||
9 | { |
||
10 | #region Static Fields and Constants |
||
11 | |||
12 | public static readonly string AssemblyName = Assembly.GetEntryAssembly().GetName().Name; |
||
13 | |||
14 | public static readonly string AssemblyVersion = Assembly.GetEntryAssembly().GetName().Version.ToString(); |
||
15 | |||
16 | public static readonly string AssemblyGuid = |
||
17 | ((GuidAttribute) Assembly.GetEntryAssembly().GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value; |
||
18 | |||
19 | #endregion |
||
20 | |||
21 | #region Public Enums, Properties and Fields |
||
22 | |||
23 | public static string UserApplicationDirectory => Path.Combine( |
||
24 | Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), @"Wizardry and Steamworks", @"RegName"); |
||
25 | |||
26 | #endregion |
||
27 | } |
||
28 | } |