diff --git a/MosswartMassacre/Constants.cs b/MosswartMassacre/Constants.cs
index 8433dc2..c944d43 100644
--- a/MosswartMassacre/Constants.cs
+++ b/MosswartMassacre/Constants.cs
@@ -26,5 +26,11 @@ namespace MosswartMassacre
// Int64 property keys
internal const int AvailableLuminanceKey = 6;
internal const int MaximumLuminanceKey = 7;
+
+ ///
+ /// Plugin version derived from assembly version (CalVer: YYYY.M.D.HHmm)
+ ///
+ public static string PluginVersion =>
+ typeof(Constants).Assembly.GetName().Version.ToString();
}
}
diff --git a/MosswartMassacre/MosswartMassacre.csproj b/MosswartMassacre/MosswartMassacre.csproj
index 745cfa9..93f65af 100644
--- a/MosswartMassacre/MosswartMassacre.csproj
+++ b/MosswartMassacre/MosswartMassacre.csproj
@@ -388,4 +388,16 @@
+
+
+
+ $([System.DateTime]::UtcNow.ToString("yyyy.M.d.HHmm"))
+ $(IntermediateOutputPath)CalVer.cs
+
+
+
+
+
+
\ No newline at end of file
diff --git a/MosswartMassacre/Properties/AssemblyInfo.cs b/MosswartMassacre/Properties/AssemblyInfo.cs
index cad7b23..216b745 100644
--- a/MosswartMassacre/Properties/AssemblyInfo.cs
+++ b/MosswartMassacre/Properties/AssemblyInfo.cs
@@ -21,10 +21,4 @@ using System.Runtime.InteropServices;
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9b6a07e1-ae78-47f4-b09c-174f6a27d7a3")]
-// Version information for an assembly consists of the following four values:
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-[assembly: AssemblyVersion("4.0.0.2")]
-[assembly: AssemblyFileVersion("4.0.0.2")]
\ No newline at end of file
+// Version is auto-generated at build time (CalVer: YYYY.M.D.HHmm)
\ No newline at end of file
diff --git a/MosswartMassacre/Views/FlagTrackerView.cs b/MosswartMassacre/Views/FlagTrackerView.cs
index b32ace9..d1061a2 100644
--- a/MosswartMassacre/Views/FlagTrackerView.cs
+++ b/MosswartMassacre/Views/FlagTrackerView.cs
@@ -177,7 +177,7 @@ namespace MosswartMassacre.Views
{
view.Visible = true;
view.ShowInBar = true;
- view.Title = "Mossy Tracker v5.0.0.0";
+ view.Title = "Mossy Tracker";
}
RefreshAllData();
diff --git a/MosswartMassacre/Views/VVSBaseView.cs b/MosswartMassacre/Views/VVSBaseView.cs
index 2f634e1..b61fb5f 100644
--- a/MosswartMassacre/Views/VVSBaseView.cs
+++ b/MosswartMassacre/Views/VVSBaseView.cs
@@ -59,7 +59,7 @@ namespace MosswartMassacre.Views
// Set window properties
if (doTitle)
{
- properties.Title = "Mosswart Massacre v5.0.0.0";
+ properties.Title = $"Mosswart Massacre v{Constants.PluginVersion}";
}
if (doIcon)
@@ -91,7 +91,7 @@ namespace MosswartMassacre.Views
if (doTitle)
{
- properties.Title = "Mosswart Massacre v5.0.0.0";
+ properties.Title = $"Mosswart Massacre v{Constants.PluginVersion}";
}
if (doIcon)
diff --git a/MosswartMassacre/bin/Release/MosswartMassacre.dll b/MosswartMassacre/bin/Release/MosswartMassacre.dll
index 57cb89b..b490983 100644
Binary files a/MosswartMassacre/bin/Release/MosswartMassacre.dll and b/MosswartMassacre/bin/Release/MosswartMassacre.dll differ