diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cdd9d25..1487ec4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -45,8 +45,33 @@ variables:
$newContenuto | Set-Content -Path $fileNameAss
# display versioni generate
$resoconto = "Effettuato fix file nuspec | release v: " + $env:NUM_REL + " | debug v: " + $env:NUM_DEB;
+ # sistemo anche versioni in file nuspec
Write-Output $resoconto;
+# helper x fix nuspec file: se debug aggiunge -beta nel blocco 3 del SemVer
+.nuspec-fix: &nuspec-fix
+ - |
+ echo "Modifica dati versione pacchetto nuget"
+ $fileNameRel = "$env:APP_NAME/$env:APP_NAME.nuspec";
+ $fileContent = Get-Content $fileNameRel -Raw;
+ $pattern = '(?i)\s*(.*?)\s*'
+ $vers = if ($fileContent -match $pattern) { $matches[1] } else { $null }
+ echo "Versione corrente: $vers | NugetType: $env:NU_TYPE"
+ if ($env:NU_TYPE -eq "Debug")
+ {
+ $env:NUM_REL = $vers -replace '^(\d+)\.(\d+)\.(\d+)\.(\d+)$', '$1.$2.$3-beta.$4'
+ }
+ elseif($env:NU_TYPE -eq "Release")
+ {
+ $env:NUM_REL = $vers
+ }
+ echo "Versione calcolata: $env:NUM_REL"
+ $findVers = "(.|\n)*?";
+ $replVers = "" + $env:NUM_REL + "";
+ $newContent = $fileContent -replace $findVers, $replVers;
+ Set-Content -Path $fileNameRel -Value $newContent;
+ echo "Modifica dati file progetto x nuspec completata su file $fileNameRel"
+
stages:
- build
- staging
@@ -149,7 +174,8 @@ SteamWare.IO:staging:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -171,7 +197,8 @@ SteamWare.Logger:staging:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -193,7 +220,8 @@ SteamWare:staging:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -215,7 +243,8 @@ SteamWare.Reports:staging:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -237,7 +266,8 @@ SteamWare.Scheduler:staging:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_DEB'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_DEB.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -262,7 +292,8 @@ SteamWare.IO:release:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -284,7 +315,8 @@ SteamWare.Logger:release:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -306,7 +338,8 @@ SteamWare:release:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -328,7 +361,8 @@ SteamWare.Reports:release:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
@@ -350,7 +384,8 @@ SteamWare.Scheduler:release:
- *version-fix
script:
- '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=$env:CONFIG /p:Platform="Any CPU" /p:OutputPath=bin/$env:CONFIG /verbosity:minimal /m'
- - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.csproj" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
+ - *nuspec-fix
+ - '& "$env:NUGET_PATH" pack "$env:APP_NAME\$env:APP_NAME.nuspec" -properties Configuration=$env:CONFIG -Version $env:NUM_REL'
- '& "$env:NUGET_PATH" setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source http://nexus.steamware.net/repository/nuget-hosted'
- '& "$env:NUGET_PATH" push *$env:NUM_REL.nupkg -Source http://nexus.steamware.net/repository/nuget-hosted'
diff --git a/SteamWare.IO/SteamWare.IO.nuspec b/SteamWare.IO/SteamWare.IO.nuspec
new file mode 100644
index 0000000..8ccdc50
--- /dev/null
+++ b/SteamWare.IO/SteamWare.IO.nuspec
@@ -0,0 +1,10 @@
+
+
+
+ SteamWare
+ 5.4.2509.1610
+ Samuele E. Locatelli
+ Steamware IO helper lib for framework projects
+ false
+
+
diff --git a/SteamWare.Logger/SteamWare.Logger.nuspec b/SteamWare.Logger/SteamWare.Logger.nuspec
new file mode 100644
index 0000000..4099475
--- /dev/null
+++ b/SteamWare.Logger/SteamWare.Logger.nuspec
@@ -0,0 +1,10 @@
+
+
+
+ SteamWare
+ 5.4.2509.1610
+ Samuele E. Locatelli
+ Steamware Logger helper lib for framework projects
+ false
+
+
diff --git a/SteamWare.Reports/SteamWare.Reports.nuspec b/SteamWare.Reports/SteamWare.Reports.nuspec
new file mode 100644
index 0000000..2f056a7
--- /dev/null
+++ b/SteamWare.Reports/SteamWare.Reports.nuspec
@@ -0,0 +1,10 @@
+
+
+
+ SteamWare
+ 5.4.2509.1610
+ Samuele E. Locatelli
+ Steamware Reports helper lib for framework projects
+ false
+
+
diff --git a/SteamWare/SteamWare.nuspec b/SteamWare/SteamWare.nuspec
new file mode 100644
index 0000000..537b821
--- /dev/null
+++ b/SteamWare/SteamWare.nuspec
@@ -0,0 +1,10 @@
+
+
+
+ SteamWare
+ 5.4.2509.1610
+ Samuele E. Locatelli
+ Steamware global helper lib for framework projects
+ false
+
+
diff --git a/Steamware.Scheduler/SteamWare.Scheduler.nuspec b/Steamware.Scheduler/SteamWare.Scheduler.nuspec
new file mode 100644
index 0000000..aa7080b
--- /dev/null
+++ b/Steamware.Scheduler/SteamWare.Scheduler.nuspec
@@ -0,0 +1,10 @@
+
+
+
+ SteamWare
+ 5.4.2509.1610
+ Samuele E. Locatelli
+ Steamware Scheduler helper lib for framework projects
+ false
+
+