Initial release
Build and Relase / build-release (push) Successful in 1m9s
Build and Relase / create-release (push) Successful in 13s

This commit is contained in:
2025-10-14 18:13:17 +02:00
commit 19e74f9e29
13 changed files with 1297 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
param (
[string]$version
)
# Function to replace version in a file
function Replace-Version {
param (
[string]$filePath,
[string]$regexPattern,
[string]$replacement
)
if (Test-Path $filePath) {
(Get-Content $filePath) -replace $regexPattern, $replacement | Set-Content $filePath
Write-Host "Updated $filePath"
} else {
Write-Host "File not found: $filePath"
}
}
# Update AssemblyInfo.cs files
$assemblyFiles = @(
"Properties\AssemblyInfo.cs"
)
$assemblyVersionPattern = '(\s*)\[assembly: AssemblyVersion\("(\d+\.\d+\.\d+\.\d+)"\)\]'
$assemblyFileVersionPattern = '(\s*)\[assembly: AssemblyFileVersion\("(\d+\.\d+\.\d+\.\d+)"\)\]'
$assemblyVersionReplacement = '$1[assembly: AssemblyVersion("' + $version + '")]'
$assemblyFileVersionReplacement = '$1[assembly: AssemblyFileVersion("' + $version + '")]'
foreach ($assemblyFile in $assemblyFiles) {
Replace-Version -filePath $assemblyFile -regexPattern $assemblyVersionPattern -replacement $assemblyVersionReplacement
Replace-Version -filePath $assemblyFile -regexPattern $assemblyFileVersionPattern -replacement $assemblyFileVersionReplacement
}