53 Commits

Author SHA1 Message Date
Samuele E. Locatelli 4268320a63 Update proj + aggiunta step x remote debug, testato in SAUDER 2025-02-28 16:31:45 +01:00
Samuele Locatelli 397ea2de9c Merge tag 'DeleteOldPdf' into develop
Eliminazione vecchi PDF
2023-10-20 12:07:28 +02:00
Samuele Locatelli 4068e72ead Merge branch 'release/DeleteOldPdf' 2023-10-20 12:07:16 +02:00
Samuele Locatelli 10e3004977 Update con cancellazione pdf oltre 6 mesi 2023-10-20 12:06:29 +02:00
Samuele Locatelli c30fc6033b Merge tag 'FixHttpsNexusUpload' into develop
Fix nexus upload http/https
2022-04-07 14:54:33 +02:00
Samuele Locatelli 33f9070c42 Merge branch 'release/FixHttpsNexusUpload' 2022-04-07 14:54:24 +02:00
Samuele Locatelli 8b31af034e Update http --> https x nexus PUT 2022-04-07 14:52:39 +02:00
Samuele Locatelli c09cc2dcfc Merge branch 'master' into develop 2022-04-07 13:00:23 +02:00
Samuele Locatelli ac70c48a2d refresh 2022-04-07 13:00:09 +02:00
Samuele Locatelli 531eb4d79a eliminazione dll inutili 2022-04-07 12:58:56 +02:00
Samuele Locatelli d1a12c5709 Update comportamento in stampa (gestione eccezioni e lettura dati file) 2022-04-07 12:58:44 +02:00
Samuele Locatelli c0a85b6dc3 Merge tag 'FixCICD' into develop
Fix CiCd x tag win su build machine
2021-09-02 12:57:57 +02:00
Samuele Locatelli 001c8dbb58 Merge branch 'release/FixCICD' 2021-09-02 12:57:36 +02:00
Samuele Locatelli 3e9d703c48 fix gitlab build 2021-09-02 12:57:02 +02:00
Samuele Locatelli 37858a857e fix nuget download passwd 2021-04-16 08:51:31 +02:00
Samuele Locatelli 9d23f67dba Merge branch 'master' into develop 2021-04-16 08:48:36 +02:00
Samuele Locatelli b79ac951e2 Aggiunta variabile hidden x pwd 2021-04-16 08:48:22 +02:00
Samuele Locatelli b61d1852a1 rimozione backup e old file jenkins (non + usato) da rimuovere in futuro 2021-04-16 08:40:45 +02:00
Samuele Locatelli 95114a49cb fix tipo versione 2021-04-16 08:31:09 +02:00
Samuele Locatelli c385f5d158 Merge branch 'develop' 2021-04-16 08:28:20 +02:00
Samuele Locatelli b26361854c fix version upload 2021-04-16 08:21:50 +02:00
Samuele Locatelli 4b64189436 Merge remote-tracking branch 'origin/develop' into develop 2021-04-16 08:17:34 +02:00
Samuele Locatelli 3914d7b7c7 update gitlab push 2021-04-16 08:16:16 +02:00
Samuele E. Locatelli e1acd72ac5 update version variable 2021-04-15 21:44:36 +02:00
Samuele E. Locatelli 83150a380f aggiunto check parametri upload nexus x check 2021-04-15 21:41:41 +02:00
Samuele E. Locatelli 1b51d4f4b9 aggiunta build anche x Master 2021-04-15 21:37:30 +02:00
Samuele E. Locatelli f595c32852 Merge branch 'develop' 2021-04-15 21:33:57 +02:00
Samuele E. Locatelli 5a9578f7b0 Merge branch 'develop' 2021-04-15 21:33:36 +02:00
Samuele E. Locatelli 77639e28e6 update hash file conf 2021-04-15 21:29:04 +02:00
Samuele Locatelli 8ac5c040e7 altro syntax... 2021-04-15 20:14:59 +02:00
Samuele Locatelli 39bbfb0320 fix hash path 2021-04-15 20:11:54 +02:00
Samuele Locatelli b98c484499 fix hash 2021-04-15 20:09:43 +02:00
Samuele Locatelli 3a3beb598d aggiunto upload hash 2021-04-15 20:02:47 +02:00
Samuele Locatelli 7b7cb9006f aggiunto HASH calculation 2021-04-15 19:51:47 +02:00
Samuele Locatelli 1e6cf0fb84 fix file name path 2021-04-15 19:40:45 +02:00
Samuele Locatelli 2a4ff472c1 modifica CURL 2021-04-15 19:38:09 +02:00
Samuele Locatelli c2ff14fa85 modifica chiamata curl 2021-04-15 19:22:50 +02:00
Samuele Locatelli 8b83a06a0e fix vers num + test nexus upload 2021-04-15 19:17:50 +02:00
Samuele Locatelli 9acb7e0e9e force remove dir 2021-04-15 19:13:58 +02:00
Samuele Locatelli 01207d444e nuovo test zip 2021-04-15 19:11:52 +02:00
Samuele Locatelli 9ffac4a880 test x directory esistente 2021-04-15 14:45:47 +02:00
Samuele Locatelli a2f19b6882 ignore error on delete 2021-04-15 14:35:18 +02:00
Samuele Locatelli 212eb23bcf echo cmd rem + zip 2021-04-15 14:33:16 +02:00
Samuele Locatelli b4913300c2 test out dir 2021-04-15 14:30:42 +02:00
Samuele Locatelli 05817acb27 sintassi remove item 2021-04-15 14:27:11 +02:00
Samuele Locatelli dc3dbdcd99 fix cleanup 2021-04-15 14:25:00 +02:00
Samuele Locatelli 7df1d1953c cambio sintassi zip 2021-04-15 14:23:06 +02:00
Samuele Locatelli 7c28dfaccb ancora update yaml 2021-04-15 14:21:36 +02:00
Samuele Locatelli c5be77e7a6 test YAML 2021-04-15 14:17:37 +02:00
Samuele Locatelli 4f6b4366f3 update componente ZIP 2021-04-15 11:57:32 +02:00
Samuele Locatelli 597c84bd1d test gitlab x upload develop/master su nexus 2021-04-15 10:53:40 +02:00
Samuele Locatelli c891687578 typo proj 2021-04-14 15:29:23 +02:00
Samuele Locatelli 377d7da945 test gitlab pipeline 2021-04-14 15:27:56 +02:00
17 changed files with 255 additions and 175 deletions
+103 -22
View File
@@ -1,37 +1,118 @@
variables:
NUGET_PATH: 'C:\Tools\nuget.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe'
ASPNET_MERGE_PATH: 'C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.8 Tools'
EXE_RELEASE_FOLDER: 'c:\Projetcs\Compiled\GPW\Release'
DEPLOY_FOLDER: 'c:\Projects\Deploy\GPW\Builds'
NEXUS_PATH: 'LPA/LPA'
APP_NAME: 'LPA'
VERS_MAIN: '1.2'
NEW_REL: ''
OUTPUT_DIR: ''
# helper x fix pacchetti nuget da repo locale nexus.steamware.net
.nuget-fix: &nuget-fix
- |
$hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C
if ($hasSource -eq 0) {
C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
} else {
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
}
echo $hasSource
# helper x fix version number
.version-fix: &version-fix
- |
$env:NEW_REL = $env:VERS_MAIN+"."+(get-date format yyMM)+"."+$CI_PIPELINE_IID
$contenuto = Get-Content -path 'VersGen\VersGen.cs' -Raw
$newContenuto = $contenuto -replace '0.0.0.0', $env:NEW_REL
$newContenuto | Set-Content -Path 'VersGen\VersGen.cs'
echo "Set vers: $env:NEW_REL"
# helper pulizia files zip
.cleanup-zip: &cleanup-zip
- |
$env:OUTPUT_DIR = "Releases\" + $CI_COMMIT_BRANCH + "\*"
if ((Test-Path $env:OUTPUT_DIR))
{
Remove-Item $env:OUTPUT_DIR -Force -Recurse -ErrorAction Ignore
}
echo "Clening ZIP dir: $env:OUTPUT_DIR"
# helper creazione files zip
.zipper: &zipper
- |
$7zipPath = $env:ProgramFiles+"\7-Zip\7z.exe"
if (-not (Test-Path -Path $7zipPath -PathType Leaf)) {
throw "7 zip file '$7zipPath' not found"
}
Set-Alias 7zip $7zipPath
$Target = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
$Source = "LPA\bin\*"
7zip a -tzip $Target $Source
echo "called ZIP $Source --> $Target"
# helper creazione hash files
.hashBuild: &hashBuild
- |
$Target = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
$MD5 = Get-FileHash $Target -Algorithm MD5
$SHA1 = Get-FileHash $Target -Algorithm SHA1
New-Item $Target".md5"
New-Item $Target".sha1"
$MD5.Hash | Set-Content -Path $Target".md5"
$SHA1.Hash | Set-Content -Path $Target".sha1"
echo "Created HASH files for $Target"
# helper x send su NEXUS
.nexusUpload: &nexusUpload
- |
Set-Alias mCurl C:\Windows\system32\curl.exe
if($CI_COMMIT_BRANCH -eq "master")
{
$version = "stable"
}
else
{
$version = "unstable"
}
$File2Send = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send https://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send".md5" https://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".md5"
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send".sha1" https://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".sha1"
# mCurl -v -u $env:NEXUS_USER:$env:NEXUS_PASSWD --upload-file bin/release/$env:APP_NAME.zip $env:NEXUS_SERVER/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip
stages:
- build
- deploy
before_script:
- '& "$env:NUGET_PATH" restore sourcecode\project.sln' # sourcecode\project.sln-This path includes project solution where is available and restoring
build_job:
stage: build
only:
- developer #this branch will run on GitLab Runner and can change it.
tags:
- win
before_script:
- *nuget-fix
- '& "$env:NUGET_PATH" restore LPA.sln' # path alla solution corrente
- *version-fix
script:
- '& "$env:MSBUILD_PATH" sourcecode\project.sln /p:DeployOnBuild=true /p:Configuration=Release /p:Platform="Any CPU" /P:PublishProfile=FolderProfile.pubxml'
- bat "\$env:MSBUILD_PATH" LPA/LPA.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m"
artifacts:
expire_in: 365 days #artifcats will be stored only 365 days after this it will expire
paths:
- '.\sourcecode\project.sln\bin\Release\Publish\'
- '.\sourcecode\project.sln\bin\Publish\'
dependencies:
- build_job
- '& "$env:MSBUILD_PATH" LPA\LPA.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
deploy_job:
stage: deploy
only:
- developer #this branch will run on GitLab Runner and can change it.
script:
- 'xcopy /y /s ".\sourcecode\project.sln\bin\Release\Publish\*.*" "C:\solutionDir"' #Path where you want to store the solution
tags:
- win
before_script:
- *nuget-fix
- '& "$env:NUGET_PATH" restore LPA.sln' # path alla solution corrente
- *version-fix
- *cleanup-zip
script:
- '& "$env:MSBUILD_PATH" LPA\LPA.csproj -target:Build /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath=bin/ /verbosity:minimal /m'
- *zipper
- *hashBuild
- *nexusUpload
needs: ["build_job"]
-56
View File
@@ -1,56 +0,0 @@
# This file is a template, and might need editing before it works on your project.
# The following script will work for any project that can be built from command line by msbuild
# It uses powershell shell executor, so you need to add the following line to your config.toml file
# (located in gitlab-runner.exe directory):
# shell = "powershell"
#
# The script is composed of 3 stages: build, test and deploy.
#
# The build stage restores NuGet packages and uses msbuild to build the exe and msi
# One major issue you'll find is that you can't build msi projects from command line
# if you use vdproj. There are workarounds building msi via devenv, but they rarely work
# The best solution is migrating your vdproj projects to WiX, as it can be build directly
# by msbuild.
#
# The test stage runs nunit from command line against Test project inside your solution
# It also saves the resulting TestResult.xml file
#
# The deploy stage copies the exe and msi from build stage to a network drive
# You need to have the network drive mapped as Local System user for gitlab-runner service to see it
# The best way to persist the mapping is via a scheduled task (see: https://stackoverflow.com/a/7867064/1288473),
# running the following batch command: net use P: \\x.x.x.x\Projects /u:your_user your_pass /persistent:yes
# place project specific paths in variables to make the rest of the script more generic
variables:
EXE_RELEASE_FOLDER: 'C:\Testb\bin\Release'
MSI_RELEASE_FOLDER: 'C:\Testb\Setup\bin\Release'
TEST_FOLDER: 'C:\Testb\Tests\bin\Release'
#DEPLOY_FOLDER: 'P:\Projects\YourApp\Builds'
NUGET_PATH: 'C:\Tools\NuGet\nuget.exe'
#MSBUILD_PATH: 'C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe'
MSBUILD_PATH: 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\msbuild.exe'
#NUNIT_PATH: 'C:\Program Files (x86)\NUnit.org\nunit-console\nunit3-console.exe'
stages:
- build
#- test
#- deploy
build_job:
stage: build
only:
- master # the build process will only be started by git tag commits
tags:
- msbuild
script:
- '& "$env:NUGET_PATH" restore' # restore Nuget dependencies
- '& "$env:MSBUILD_PATH" LPA/LPA.csproj -target:Build /p:Configuration=Release /p:Platform=\"Any CPU\" /p:OutputPath=bin/ /m' # build the project
artifacts:
expire_in: 1 week # save gitlab server space, we copy the files we need to deploy folder later on
paths:
- '$env:EXE_RELEASE_FOLDER\LPA.exe' # saving exe to copy to deploy folder
- '$env:MSI_RELEASE_FOLDER\LPA.msi' # saving msi to copy to deploy folder
#- '$env:TEST_FOLDER\' # saving entire Test project so NUnit can run tests
+22 -12
View File
@@ -1,23 +1,25 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.29709.97
# Visual Studio Version 17
VisualStudioVersion = 17.13.35825.156
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LPA", "LPA\LPA.csproj", "{FC2D9163-9748-407E-8D6F-80BCAD6D7717}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VersGen", "VersGen\VersGen.csproj", "{58E399F3-9D4E-49D3-AB35-9ED536543D50}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8A16CC40-FAB6-4BF5-8AC8-7B7AB1A27C66}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VersGen", "VersGen\VersGen.csproj", "{51968C56-2532-4A15-B044-D062233997FA}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x86 = Release|x86
Remote_DEBUG|Any CPU = Remote_DEBUG|Any CPU
Remote_DEBUG|x86 = Remote_DEBUG|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
@@ -28,14 +30,22 @@ Global
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Release|Any CPU.Build.0 = Release|Any CPU
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Release|x86.ActiveCfg = Release|Any CPU
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Release|x86.Build.0 = Release|Any CPU
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|Any CPU.Build.0 = Debug|Any CPU
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|x86.ActiveCfg = Debug|x86
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|x86.Build.0 = Debug|x86
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|Any CPU.ActiveCfg = Release|Any CPU
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|Any CPU.Build.0 = Release|Any CPU
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|x86.ActiveCfg = Release|x86
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|x86.Build.0 = Release|x86
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|Any CPU.ActiveCfg = Remote_DEBUG|Any CPU
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|Any CPU.Build.0 = Remote_DEBUG|Any CPU
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|x86.ActiveCfg = Remote_DEBUG|Any CPU
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|x86.Build.0 = Remote_DEBUG|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Debug|x86.ActiveCfg = Debug|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Debug|x86.Build.0 = Debug|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Release|Any CPU.Build.0 = Release|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Release|x86.ActiveCfg = Release|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Release|x86.Build.0 = Release|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Remote_DEBUG|Any CPU.ActiveCfg = Remote_DEBUG|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Remote_DEBUG|Any CPU.Build.0 = Remote_DEBUG|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Remote_DEBUG|x86.ActiveCfg = Remote_DEBUG|Any CPU
{51968C56-2532-4A15-B044-D062233997FA}.Remote_DEBUG|x86.Build.0 = Remote_DEBUG|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
+6 -4
View File
@@ -5,10 +5,12 @@
</startup>
<appSettings>
<add key="appName" value="LPA" />
<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
<add key="serverIp" value="iis01" />
<!--<add key="serverBaseAddr" value="http://iis02/NKC/" />
<add key="serverIp" value="iis02" />-->
<!--<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
<add key="serverIp" value="iis01" />-->
<add key="serverBaseAddr" value="http://iis01.egalware.com/NKC/" />
<add key="serverIp" value="iis01.egalware.com" />
<!--<add key="serverBaseAddr" value="http://iis02.egalware.com/NKC/" />
<add key="serverIp" value="iis02.egalware.com" />-->
<add key="localReportPath" value="reports" />
<add key="localPdfPath" value="pdf" />
<add key="_logDir" value="/logs/" />
+15 -2
View File
@@ -42,6 +42,16 @@
<PropertyGroup>
<ApplicationIcon>SteamWare.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Remote_DEBUG|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\Remote_DEBUG\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<Prefer32Bit>true</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="AegisImplicitMail, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\AIM.1.0.3\lib\AegisImplicitMail.dll</HintPath>
@@ -229,6 +239,7 @@
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
<None Include="demo\ReportConf.json" />
<None Include="postBuildTgt.bat" />
<None Include="reports\DemoA4.rdlc">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
@@ -312,8 +323,6 @@
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
<Content Include="Resources\SteamWare.ico" />
<Content Include="snappy32.dll" />
<Content Include="snappy64.dll" />
<Content Include="SqlServerTypes\readme.htm" />
<Content Include="SqlServerTypes\x64\msvcr120.dll">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
@@ -352,4 +361,8 @@
</Target>
<Import Project="..\packages\MongoDB.LibMongocrypt.1.2.0\build\MongoDB.Libmongocrypt.targets" Condition="Exists('..\packages\MongoDB.LibMongocrypt.1.2.0\build\MongoDB.Libmongocrypt.targets')" />
<Import Project="..\packages\MongoDB.Driver.Core.2.12.0\build\MongoDB.Driver.Core.targets" Condition="Exists('..\packages\MongoDB.Driver.Core.2.12.0\build\MongoDB.Driver.Core.targets')" />
<Target Name="FinalBuild" AfterTargets="AfterBuild">
<Exec Command="$(ProjectDir)postBuildTgt.bat $(ConfigurationName) $(TargetDir)">
</Exec>
</Target>
</Project>
+12 -4
View File
@@ -642,11 +642,19 @@ namespace LPA
{
// parto da template base
template = item.template;
// cerco nel dato da singolo item
var templateConf = reportConf.Find(conf => conf.name == item.template);
if (reportConf != null)
//se non c'è uso quello della coda...
if (string.IsNullOrEmpty(template))
{
template = templateConf.template;
template = confCoda.template;
}
else
{
// cerco nel dato da singolo item
var templateConf = reportConf.Find(conf => conf.name == item.template);
if (reportConf != null)
{
template = templateConf.template;
}
}
// stampo
fatto = rPrint.printReport(template, localReportPath, coda.Value.Printer, item.rdsData, confCoda.deviceInfoParam, true);
+1 -1
View File
@@ -1,4 +1,4 @@
{
"serverIp": "iis01",
"serverBaseAddr": "http://iis01/MP/MAG/"
"serverBaseAddr": "http://iis01/NKC/"
}
+34
View File
@@ -0,0 +1,34 @@
@echo off
echo Inizio processing After Build: configurazione %1 , directory %2
if %1 == "Release" goto ReleaseExec
if %1 == Release goto ReleaseExec
if %1 == "Debug" goto DebugExec
if %1 == Debug goto DebugExec
if %1 == "Remote_DEBUG" goto RemoteDebugExec
if %1 == Remote_DEBUG goto RemoteDebugExec
:ReleaseExec
echo Release processing...
del /S %2"*.pdb""
del /S %2"*.xml""
del /S %2"lib/*.pdb""
echo Release: eliminato pdb + xml!!!
goto END
:DebugExec
echo Debug processing...
goto END
:RemoteDebugExec
echo Remote_DEBUG processing, effettuo copia script verso server remoto (ROBOCOPY)
REM copia script verso server remoto
REM echo Debug remoto: effettuo robocopy sync (verificare remote per cliente)
ROBOCOPY %2 \\192.168.210.5\Steamware\LPA-DEB /MIR
goto END
:END
echo Fatto!
+38 -8
View File
@@ -95,8 +95,10 @@ namespace LPA
string dailyDir = $"{baseDir}{localPdfPath}\\{adesso:yyyy}\\{adesso:MM}\\{adesso:dd}\\";
string pdfPathName = $"{dailyDir}\\{name}_{adesso:HHmmss}_{adesso:ffff}.{fileNameExtension}";
// creo Directory se non c'è
fileMover fm = new fileMover(dailyDir, "");
fm.checkDir();
if (!Directory.Exists(dailyDir))
{
Directory.CreateDirectory(dailyDir);
}
Stream stream = new FileStream(pdfPathName, FileMode.Create);
m_streams.Add(stream);
return stream;
@@ -299,16 +301,17 @@ namespace LPA
}
// ottengo elenco files *.emf
fileMover.obj.setDirectory(currPath);
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.EMF");
var _fis = Directory.GetFiles(currPath, "*.EMF");
bool fatto = false;
foreach (FileInfo _file in _fis)
foreach (var _fileName in _fis)
{
if (_file.CreationTime < DateTime.Now.AddMinutes(-maxAgeMinutes)) // elimino files vecchi...
FileInfo file = new FileInfo(_fileName);
if (file.CreationTime < DateTime.Now.AddMinutes(-maxAgeMinutes)) // elimino files vecchi...
{
fatto = fileMover.obj.eliminaFile(_file);
fatto = fileMover.obj.eliminaFile(file);
if (fatto)
{
Log.Instance.Info($"Eliminato file {_file.Name}");
Log.Instance.Info($"Eliminato file {file.Name}");
eliminati++;
}
}
@@ -316,7 +319,34 @@ namespace LPA
// salvo il log degli update
if (eliminati > 0)
{
Log.Instance.Info($"Eliminati {eliminati} files temporanei da area temp");
Log.Instance.Info($"Eliminati {eliminati} files EMF temporanei da area temp");
}
// verifica file pdf vecchi (oltre 5 mesi...)
currPath = $"{baseDir}{localPdfPath}";
eliminati = 0;
// ottengo elenco files *.emf
fileMover.obj.setDirectory(currPath);
_fis = Directory.GetFiles(currPath, "*.pdf", SearchOption.AllDirectories);
fatto = false;
foreach (var _fileName in _fis)
{
FileInfo file = new FileInfo(_fileName);
if (file.CreationTime < DateTime.Now.AddMonths(-5)) // elimino files vecchi...
{
fatto = fileMover.obj.eliminaFile(file);
if (fatto)
{
Log.Instance.Info($"Eliminato file {file.Name}");
eliminati++;
}
}
}
// salvo il log degli update
if (eliminati > 0)
{
Log.Instance.Info($"Eliminati {eliminati} files EMF temporanei da area temp");
}
}
catch (Exception exc)
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
View File
-6
View File
@@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
</startup>
</configuration>
+6 -17
View File
@@ -2,31 +2,20 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("VersGen")]
[assembly: AssemblyTitle("VersGen2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("VersGen")]
[assembly: AssemblyProduct("VersGen2")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("58e399f3-9d4e-49d3-ab35-9ed536543d50")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: Guid("51968c56-2532-4a15-b044-d062233997fa")]
+3 -3
View File
@@ -3,7 +3,7 @@
// the next time this code is regenerated.
//
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyCopyright("Steamware © 2006-2020")]
[assembly: AssemblyVersion("0.0.0.0")]
[assembly: AssemblyFileVersion("0.0.0.0")]
[assembly: AssemblyCopyright("Steamware © 2006-2025")]
[assembly: AssemblyCompany("Steamware")]
+13 -38
View File
@@ -1,21 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{58E399F3-9D4E-49D3-AB35-9ED536543D50}</ProjectGuid>
<ProjectGuid>{51968C56-2532-4A15-B044-D062233997FA}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>VersGen</RootNamespace>
<AssemblyName>VersGen</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<RootNamespace>VersGen2</RootNamespace>
<AssemblyName>VersGen2</AssemblyName>
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
@@ -23,10 +21,8 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<UseVSHostingProcess>true</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
@@ -34,26 +30,14 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<StartupObject />
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Remote_DEBUG|AnyCPU'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x86\Debug\</OutputPath>
<OutputPath>bin\Remote_DEBUG\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DebugType>full</DebugType>
<PlatformTarget>x86</PlatformTarget>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>7.3</LangVersion>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<Optimize>true</Optimize>
<DebugType>pdbonly</DebugType>
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
@@ -62,18 +46,16 @@
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="VersGen.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>VersGen.tt</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<Content Include="VersGen.tt">
@@ -85,11 +67,4 @@
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
+2 -2
View File
@@ -4,7 +4,7 @@
// the next time this code is regenerated.
//
using System.Reflection;
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("0.0.0.0")]
[assembly: AssemblyFileVersion("0.0.0.0")]
[assembly: AssemblyCopyright("Steamware © 2006-<#= DateTime.Now.Year #>")]
[assembly: AssemblyCompany("Steamware")]