diff --git a/RadeonResetBugFixService/EnvironmentHelper.cs b/RadeonResetBugFixService/EnvironmentHelper.cs
index 32d69e3..57d0157 100644
--- a/RadeonResetBugFixService/EnvironmentHelper.cs
+++ b/RadeonResetBugFixService/EnvironmentHelper.cs
@@ -1,6 +1,7 @@
namespace RadeonResetBugFixService
{
using System;
+ using System.Reflection;
using System.Runtime.InteropServices;
using System.Security.Principal;
@@ -35,5 +36,14 @@
public static bool IsWindows8OrNewer() => IsWindows() && Environment.OSVersion.Version >= Windows8Version;
public static bool IsVistaOrNewer() => IsWindows() && Environment.OSVersion.Version >= VistaVersion;
+
+ // Code taken from https://stackoverflow.com/a/826850
+ public static DateTime GetServiceBuildDate()
+ {
+ var version = Assembly.GetExecutingAssembly().GetName().Version;
+ return new DateTime(2000, 1, 1, 0, 0, 0, DateTimeKind.Unspecified)
+ .AddDays(version.Build)
+ .AddSeconds(version.Revision * 2);
+ }
}
}
diff --git a/RadeonResetBugFixService/MainHandler.cs b/RadeonResetBugFixService/MainHandler.cs
index d95d051..8fc28d0 100644
--- a/RadeonResetBugFixService/MainHandler.cs
+++ b/RadeonResetBugFixService/MainHandler.cs
@@ -30,6 +30,8 @@
{
using (ILogger logger = new TaskLoggerWrapper(fileLogger, name))
{
+ logger.Log($"Build date: {EnvironmentHelper.GetServiceBuildDate()}");
+
try
{
lock (this.Mutex)
diff --git a/RadeonResetBugFixService/Program.cs b/RadeonResetBugFixService/Program.cs
index 6163390..1dea901 100644
--- a/RadeonResetBugFixService/Program.cs
+++ b/RadeonResetBugFixService/Program.cs
@@ -52,6 +52,8 @@
private static void MainConsole(string[] args)
{
+ Console.WriteLine($"Build date: {EnvironmentHelper.GetServiceBuildDate()}");
+
var command = args.Length == 1 ? args[0] : string.Empty;
if (command.Equals("install", StringComparison.OrdinalIgnoreCase)) {
diff --git a/RadeonResetBugFixService/Properties/AssemblyInfo.cs b/RadeonResetBugFixService/Properties/AssemblyInfo.cs
index 9aa02c4..5440c95 100644
--- a/RadeonResetBugFixService/Properties/AssemblyInfo.cs
+++ b/RadeonResetBugFixService/Properties/AssemblyInfo.cs
@@ -32,5 +32,4 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.0.*")]
diff --git a/RadeonResetBugFixService/RadeonResetBugFixService.csproj b/RadeonResetBugFixService/RadeonResetBugFixService.csproj
index 2f340fc..dc9e6df 100644
--- a/RadeonResetBugFixService/RadeonResetBugFixService.csproj
+++ b/RadeonResetBugFixService/RadeonResetBugFixService.csproj
@@ -16,7 +16,7 @@
v4.7.2
512
true
- true
+ false
@@ -51,63 +51,63 @@
-
-
-
-
+
+
+
+
+
+
-
+
+
Component
ProjectInstaller.cs
+
Component
RadeonResetBugFixService.cs
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
+
+