fix posizione file nuspec in step correzione versione

This commit is contained in:
Emmanuele Sassi
2025-09-30 19:02:34 +02:00
parent 633ea2ebf2
commit d9d717d0c8
+1 -1
View File
@@ -110,7 +110,7 @@ variables:
.nuspec-fix-framework: &nuspec-fix-framework
- |
echo "Modifica dati versione pacchetto nuget x progetti Framework"
$fileNameRel = "$env:APP_NAME/$env:APP_NAME.nuspec";
$fileNameRel = "$env:APP_NAME.nuspec";
$fileContent = Get-Content $fileNameRel -Raw;
$pattern = '(?i)<Version>\s*(.*?)\s*</Version>'
$vers = if ($fileContent -match $pattern) { $matches[1] } else { $null }