diff --git a/EgwControlCenter.App/EgwControlCenter.App.csproj b/EgwControlCenter.App/EgwControlCenter.App.csproj
index 6a9ef57..954a70e 100644
--- a/EgwControlCenter.App/EgwControlCenter.App.csproj
+++ b/EgwControlCenter.App/EgwControlCenter.App.csproj
@@ -41,4 +41,7 @@
PreserveNewest
+
+
+
\ No newline at end of file
diff --git a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user
index be732e9..dde5cc4 100644
--- a/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user
+++ b/EgwControlCenter.App/Properties/PublishProfiles/ClickOnceProfile.pubxml.user
@@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
- True|2024-09-24T14:54:23.4735539Z||;True|2024-09-24T16:39:32.2152525+02:00||;True|2024-09-24T15:16:02.4976236+02:00||;True|2024-09-24T15:06:15.3728331+02:00||;
+ True|2024-09-26T06:47:21.6588993Z||;True|2024-09-24T16:54:23.4735539+02:00||;True|2024-09-24T16:39:32.2152525+02:00||;True|2024-09-24T15:16:02.4976236+02:00||;True|2024-09-24T15:06:15.3728331+02:00||;
\ No newline at end of file
diff --git a/EgwControlCenter.App/pre-build.ps1 b/EgwControlCenter.App/pre-build.ps1
new file mode 100644
index 0000000..1f8c530
--- /dev/null
+++ b/EgwControlCenter.App/pre-build.ps1
@@ -0,0 +1,28 @@
+param([string]$ProjectDir, [string]$ProjectPath);
+
+$FileMajMin = "..\MajMin.vers"
+$FileClickOnce = "Properties\PublishProfiles\ClickOnceProfile.pubxml"
+$MajMin = Get-Content $FileMajMin # "6.14."
+$currentDate = get-date -format yyMM;
+$currentTime = get-date -format ddHH;
+$currRelNum = $MajMin + $currentDate +"." + $currentTime
+
+# fix csProj file
+$csproj = Get-Content $ProjectPath
+$find = "(.|\n)*?";
+$replace = "" + $currRelNum + "";
+$csprojUpdated = $csproj -replace $find, $replace
+
+# fix clickonceFile
+$coFile = Get-Content $FileClickOnce
+$find = "(.|\n)*?";
+$replace = "" + $currentTime + "";
+$coFile = $coFile -replace $find, $replace
+
+$find = "(.|\n)*?";
+$replace = "" + $currRelNum + "";
+$csFilejUpd = $coFile -replace $find, $replace
+
+
+Set-Content -Path $ProjectPath -Value $csprojUpdated
+Set-Content -Path $FileClickOnce -Value $csFilejUpd