fix yaml x calcolo rel number
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ variables:
|
||||
.nuspec-fix: &nuspec-fix
|
||||
- |
|
||||
echo "Modifica dati versione pacchetto nuget"
|
||||
$fileNameRel = "$env:APP_NAME/$env:APP_NAME.vbproj";
|
||||
$fileNameRel = "$env:APP_NAME/$env:APP_NAME.csproj";
|
||||
$fileContent = Get-Content $fileNameRel -Raw;
|
||||
$pattern = '(?i)<Version>\s*(.*?)\s*</Version>'
|
||||
$vers = if ($fileContent -match $pattern) { $matches[1] } else { $null }
|
||||
|
||||
Reference in New Issue
Block a user