From cda00c4a001a736524812fa9a62844a2da715651 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 22 Aug 2017 21:43:08 +0200 Subject: Automatic version number and build date loading --- Aktywator/Aktywator.csproj | 6 ++++ Aktywator/MainForm.cs | 5 +-- Aktywator/Properties/Resources.Designer.cs | 54 ++++++++++++++++-------------- Aktywator/Properties/Resources.resx | 13 +++++-- Aktywator/Resources/BuildDate.txt | 1 + 5 files changed, 48 insertions(+), 31 deletions(-) create mode 100644 Aktywator/Resources/BuildDate.txt diff --git a/Aktywator/Aktywator.csproj b/Aktywator/Aktywator.csproj index a4dc515..f7a2fa6 100644 --- a/Aktywator/Aktywator.csproj +++ b/Aktywator/Aktywator.csproj @@ -129,6 +129,7 @@ True Resources.resx + True @@ -143,6 +144,7 @@ + @@ -162,6 +164,10 @@ + + echo %25date%25 > "$(ProjectDir)\Resources\BuildDate.txt" + + + @@ -68,9 +69,10 @@ - + + @@ -85,9 +87,10 @@ - + + @@ -114,4 +117,8 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ..\Resources\BuildDate.txt;System.String, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;windows-1250 + \ No newline at end of file diff --git a/Aktywator/Resources/BuildDate.txt b/Aktywator/Resources/BuildDate.txt new file mode 100644 index 0000000..2c6557e --- /dev/null +++ b/Aktywator/Resources/BuildDate.txt @@ -0,0 +1 @@ +2017-08-22 -- cgit v1.2.3