Spring – 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 Spring |
||
7 | { |
||
8 | public static class Constants |
||
9 | { |
||
10 | #region Static Fields and Constants |
||
11 | |||
12 | public static readonly string AssemblyName = Assembly.GetEntryAssembly() |
||
13 | .GetName() |
||
14 | .Name; |
||
15 | |||
16 | public static readonly string AssemblyVersion = Assembly.GetEntryAssembly() |
||
17 | .GetName() |
||
18 | .Version.ToString(); |
||
19 | |||
20 | public static readonly string AssemblyGuid = |
||
21 | ((GuidAttribute) Assembly.GetEntryAssembly() |
||
22 | .GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value; |
||
23 | |||
24 | #endregion |
||
25 | |||
26 | #region Public Enums, Properties and Fields |
||
27 | |||
28 | public static string ConfigurationFilePath => Path.Combine(UserApplicationDirectory, @"Configuration.xml"); |
||
29 | |||
30 | public static string UserApplicationDirectory => Path.Combine( |
||
31 | Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments), |
||
32 | @"Wizardry and Steamworks", |
||
33 | @"Spring"); |
||
34 | |||
35 | #endregion |
||
36 | } |
||
37 | } |