diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f0bf3c82..0beeaec9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ variables: NEXUS_PATH: 'MP-XXXX' APP_NAME: 'MP.Xxxx' APP_CONF: 'Release' + SOL_NAME: 'MAPO' # helper x fix pacchetti nuget da repo locale nexus.steamware.net .nuget-fix: &nuget-fix @@ -78,15 +79,6 @@ variables: mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileManOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/manifest.xml echo "mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html" mCurl -s -u GitLab:$NEXUS_PASSWD --upload-file $FileCLogOut https://nexus.steamware.net/repository/SWS/$env:NEXUS_PATH/$version/LAST/ChangeLog.html - -# # helper x send su NEXUS di pack SDK in formato nuget -# .sendSDK: &sendSDK -# - | -# '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m' -# '& Remove-Item *.nupkg' -# '& $env:NUGET_PATH pack MapoSDK\MapoSDK.csproj -properties Configuration=$env:APP_CONF -Description="Mapo SDK helper library" -Author=EgalWare -Version $env:NEW_REL' -# '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' -# '& $env:NUGET_PATH push MapoSDK.$env:NEW_REL.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' # helper x fix version number .version-fix: &version-fix @@ -129,7 +121,6 @@ stages: - deploy - installer - SDK-stable: stage: sdk tags: @@ -137,18 +128,18 @@ SDK-stable: rules: - if: '$CI_COMMIT_BRANCH == "SDK"' variables: - APP_NAME: MP-ADM - NEXUS_PATH: MP-ADM + APP_NAME: MapoSDK + NEXUS_PATH: MapoSDK before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - - '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m' + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Release /verbosity:minimal /m' - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack MapoSDK.Release.nuspec' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Release.nuspec"' - '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' - - '& $env:NUGET_PATH push MapoSDK.$env:NEW_REL.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' + - '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_REL.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted' SDK-unstable: stage: sdk @@ -157,18 +148,18 @@ SDK-unstable: rules: - if: '$CI_COMMIT_BRANCH == "develop"' variables: - APP_NAME: MP-ADM - NEXUS_PATH: MP-ADM + APP_NAME: MapoSDK + NEXUS_PATH: MapoSDK before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - - '& "$env:MSBUILD_PATH" MapoSDK/MapoSDK.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Debug /verbosity:minimal /m' + - '& "$env:MSBUILD_PATH" "$env:APP_NAME\$env:APP_NAME.csproj" -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/Debug /verbosity:minimal /m' - '& Remove-Item *.nupkg' - - '& $env:NUGET_PATH pack MapoSDK.Debug.nuspec' + - '& $env:NUGET_PATH pack "$env:APP_NAME.Debug.nuspec"' - '& $env:NUGET_PATH setapikey fe387daa-d07c-3207-877e-96c8be1be91b -source https://nexus.steamware.net/repository/nuget-hosted' - - '& $env:NUGET_PATH push MapoSDK.$env:NEW_DEB.nupkg -Source https://nexus.steamware.net/repository/nuget-hosted' + - '& $env:NUGET_PATH push "$env:APP_NAME.$env:NEW_DEB.nupkg" -Source https://nexus.steamware.net/repository/nuget-hosted' ADM:build: stage: build @@ -180,7 +171,7 @@ ADM:build: - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-ADM/MP-ADM.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -195,7 +186,7 @@ IO:build: - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-IO/MP-IO.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -210,7 +201,7 @@ SITE:build: - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-SITE/MP-SITE.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -225,7 +216,7 @@ SITE:build: # - if: '$CI_COMMIT_BRANCH != "SDK"' # before_script: # - *nuget-fix -# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' # - *version-fix # script: # - '& "$env:MSBUILD_PATH" MP-MON/MP-MON.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -240,7 +231,7 @@ TAB:build: - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-TAB/MP-TAB.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -255,7 +246,7 @@ MAG:build: - if: '$CI_COMMIT_BRANCH != "SDK"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" MP-MAG/MP-MAG.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m' @@ -268,7 +259,7 @@ ADM:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-ADM/MP-ADM.csproj' @@ -282,7 +273,7 @@ IO:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-IO/MP-IO.csproj' @@ -296,7 +287,7 @@ SITE:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj' @@ -310,7 +301,7 @@ SITE:staging: # - if: '$CI_COMMIT_BRANCH == "develop"' # before_script: # - *nuget-fix -# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' # - *version-fix # script: # - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' @@ -324,7 +315,7 @@ TAB:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-TAB/MP-TAB.csproj' @@ -338,7 +329,7 @@ MAG:staging: - if: '$CI_COMMIT_BRANCH == "develop"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS01.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS01 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MAG/MP-MAG.csproj' @@ -352,7 +343,7 @@ ADM:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-ADM/MP-ADM.csproj' @@ -366,7 +357,7 @@ IO:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-IO/MP-IO.csproj' @@ -380,7 +371,7 @@ SITE:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-SITE/MP-SITE.csproj' @@ -394,7 +385,7 @@ SITE:deploy: # - if: '$CI_COMMIT_BRANCH == "master"' # before_script: # - *nuget-fix -# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' # - *version-fix # script: # - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MON/MP-MON.csproj' @@ -408,7 +399,7 @@ TAB:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-TAB/MP-TAB.csproj' @@ -422,7 +413,7 @@ MAG:deploy: - if: '$CI_COMMIT_BRANCH == "master"' before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /p:DeployOnBuild=true /p:Targets=Publish /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:Configuration=IIS02 /p:username=jenkins /p:Password=viadante16 /p:AllowUntrustedCertificate=true /p:OutputPath=bin/ /verbosity:minimal MP-MAG/MP-MAG.csproj' @@ -441,7 +432,7 @@ ADM:install: NEXUS_PATH: MP-ADM before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/ADM" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' @@ -462,7 +453,7 @@ IO:install: NEXUS_PATH: MP-IO before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/IO" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' @@ -483,7 +474,7 @@ SITE:install: NEXUS_PATH: MP-SITE before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/SITE" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' @@ -504,7 +495,7 @@ SITE:install: # NEXUS_PATH: MP-MON # before_script: # - *nuget-fix -# - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' +# - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' # - *version-fix # script: # - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MON" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' @@ -525,7 +516,7 @@ TAB:install: NEXUS_PATH: MP-TAB before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/TAB" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' @@ -546,7 +537,7 @@ MAG:install: NEXUS_PATH: MP-MAG before_script: - *nuget-fix - - '& "$env:NUGET_PATH" restore MAPO.sln -verbosity quiet' + - '& "$env:NUGET_PATH" restore "$env:SOL_NAME.sln" -verbosity quiet' - *version-fix script: - '& "$env:MSBUILD_PATH" /p:m=4 /p:AspnetMergePath=$env:ASPNET_MERGE_PATH /T:Package /P:Configuration=Release /p:PublishProfile=IIS02.pubxml /p:RunCodeAnalysis=false /p:PackageLocation=Release/$env:APP_NAME.zip /p:DeployIisAppPath="Default Web Site/MP/MAG" /p:PackageAsSingleFile=True /p:OutputPath=bin/ /verbosity:minimal $env:APP_NAME/$env:APP_NAME.csproj' diff --git a/MapoSDK/MapoSDK.csproj b/MapoSDK/MapoSDK.csproj index 791baddd..803485e0 100644 --- a/MapoSDK/MapoSDK.csproj +++ b/MapoSDK/MapoSDK.csproj @@ -56,6 +56,7 @@ +