Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4268320a63 | |||
| 397ea2de9c | |||
| 4068e72ead | |||
| 10e3004977 | |||
| c30fc6033b | |||
| 33f9070c42 | |||
| 8b31af034e | |||
| c09cc2dcfc | |||
| ac70c48a2d | |||
| 531eb4d79a | |||
| d1a12c5709 | |||
| c0a85b6dc3 |
+5
-5
@@ -15,9 +15,9 @@ variables:
|
|||||||
- |
|
- |
|
||||||
$hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C
|
$hasSource = C:\Tools\nuget.exe sources list | find "`"Steamware Nexus`"" /C
|
||||||
if ($hasSource -eq 0) {
|
if ($hasSource -eq 0) {
|
||||||
C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
C:\Tools\nuget.exe sources Add -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
||||||
} else {
|
} else {
|
||||||
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source http://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
C:\Tools\nuget.exe sources Update -Name "`"Steamware Nexus`"" -Source https://nexus.steamware.net/repository/nuget-group -username "`"nugetUser`"" -password "`"$NEXUS_PASSWD`""
|
||||||
}
|
}
|
||||||
echo $hasSource
|
echo $hasSource
|
||||||
|
|
||||||
@@ -79,9 +79,9 @@ variables:
|
|||||||
$version = "unstable"
|
$version = "unstable"
|
||||||
}
|
}
|
||||||
$File2Send = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
|
$File2Send = "Releases\" + $CI_COMMIT_BRANCH + "\" + $env:APP_NAME + ".zip"
|
||||||
mCurl -v -u GitLab:$NEXUS_PASSWD --upload-file $File2Send http://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.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" http://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".md5"
|
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" http://nexus.steamware.net/repository/utility/$env:NEXUS_PATH/$version/$env:APP_NAME-$version.zip".sha1"
|
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
|
# 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
|
||||||
|
|||||||
@@ -1,23 +1,25 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 16.0.29709.97
|
VisualStudioVersion = 17.13.35825.156
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LPA", "LPA\LPA.csproj", "{FC2D9163-9748-407E-8D6F-80BCAD6D7717}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LPA", "LPA\LPA.csproj", "{FC2D9163-9748-407E-8D6F-80BCAD6D7717}"
|
||||||
EndProject
|
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}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8A16CC40-FAB6-4BF5-8AC8-7B7AB1A27C66}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
.editorconfig = .editorconfig
|
.editorconfig = .editorconfig
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VersGen", "VersGen\VersGen.csproj", "{51968C56-2532-4A15-B044-D062233997FA}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
Debug|x86 = Debug|x86
|
Debug|x86 = Debug|x86
|
||||||
Release|Any CPU = Release|Any CPU
|
Release|Any CPU = Release|Any CPU
|
||||||
Release|x86 = Release|x86
|
Release|x86 = Release|x86
|
||||||
|
Remote_DEBUG|Any CPU = Remote_DEBUG|Any CPU
|
||||||
|
Remote_DEBUG|x86 = Remote_DEBUG|x86
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||||
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
{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|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.ActiveCfg = Release|Any CPU
|
||||||
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Release|x86.Build.0 = 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
|
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|Any CPU.ActiveCfg = Remote_DEBUG|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|Any CPU.Build.0 = Remote_DEBUG|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|x86.ActiveCfg = Debug|x86
|
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|x86.ActiveCfg = Remote_DEBUG|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Debug|x86.Build.0 = Debug|x86
|
{FC2D9163-9748-407E-8D6F-80BCAD6D7717}.Remote_DEBUG|x86.Build.0 = Remote_DEBUG|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{51968C56-2532-4A15-B044-D062233997FA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|Any CPU.Build.0 = Release|Any CPU
|
{51968C56-2532-4A15-B044-D062233997FA}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|x86.ActiveCfg = Release|x86
|
{51968C56-2532-4A15-B044-D062233997FA}.Debug|x86.ActiveCfg = Debug|Any CPU
|
||||||
{58E399F3-9D4E-49D3-AB35-9ED536543D50}.Release|x86.Build.0 = Release|x86
|
{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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
+6
-4
@@ -5,10 +5,12 @@
|
|||||||
</startup>
|
</startup>
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<add key="appName" value="LPA" />
|
<add key="appName" value="LPA" />
|
||||||
<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
|
<!--<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
|
||||||
<add key="serverIp" value="iis01" />
|
<add key="serverIp" value="iis01" />-->
|
||||||
<!--<add key="serverBaseAddr" value="http://iis02/NKC/" />
|
<add key="serverBaseAddr" value="http://iis01.egalware.com/NKC/" />
|
||||||
<add key="serverIp" value="iis02" />-->
|
<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="localReportPath" value="reports" />
|
||||||
<add key="localPdfPath" value="pdf" />
|
<add key="localPdfPath" value="pdf" />
|
||||||
<add key="_logDir" value="/logs/" />
|
<add key="_logDir" value="/logs/" />
|
||||||
|
|||||||
+15
-2
@@ -42,6 +42,16 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationIcon>SteamWare.ico</ApplicationIcon>
|
<ApplicationIcon>SteamWare.ico</ApplicationIcon>
|
||||||
</PropertyGroup>
|
</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>
|
<ItemGroup>
|
||||||
<Reference Include="AegisImplicitMail, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="AegisImplicitMail, Version=1.0.3.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\AIM.1.0.3\lib\AegisImplicitMail.dll</HintPath>
|
<HintPath>..\packages\AIM.1.0.3\lib\AegisImplicitMail.dll</HintPath>
|
||||||
@@ -229,6 +239,7 @@
|
|||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
<None Include="demo\ReportConf.json" />
|
<None Include="demo\ReportConf.json" />
|
||||||
|
<None Include="postBuildTgt.bat" />
|
||||||
<None Include="reports\DemoA4.rdlc">
|
<None Include="reports\DemoA4.rdlc">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
@@ -312,8 +323,6 @@
|
|||||||
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
|
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
|
||||||
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
|
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
|
||||||
<Content Include="Resources\SteamWare.ico" />
|
<Content Include="Resources\SteamWare.ico" />
|
||||||
<Content Include="snappy32.dll" />
|
|
||||||
<Content Include="snappy64.dll" />
|
|
||||||
<Content Include="SqlServerTypes\readme.htm" />
|
<Content Include="SqlServerTypes\readme.htm" />
|
||||||
<Content Include="SqlServerTypes\x64\msvcr120.dll">
|
<Content Include="SqlServerTypes\x64\msvcr120.dll">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
@@ -352,4 +361,8 @@
|
|||||||
</Target>
|
</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.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')" />
|
<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>
|
</Project>
|
||||||
+12
-4
@@ -642,11 +642,19 @@ namespace LPA
|
|||||||
{
|
{
|
||||||
// parto da template base
|
// parto da template base
|
||||||
template = item.template;
|
template = item.template;
|
||||||
// cerco nel dato da singolo item
|
//se non c'è uso quello della coda...
|
||||||
var templateConf = reportConf.Find(conf => conf.name == item.template);
|
if (string.IsNullOrEmpty(template))
|
||||||
if (reportConf != null)
|
|
||||||
{
|
{
|
||||||
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
|
// stampo
|
||||||
fatto = rPrint.printReport(template, localReportPath, coda.Value.Printer, item.rdsData, confCoda.deviceInfoParam, true);
|
fatto = rPrint.printReport(template, localReportPath, coda.Value.Printer, item.rdsData, confCoda.deviceInfoParam, true);
|
||||||
|
|||||||
@@ -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
@@ -95,8 +95,10 @@ namespace LPA
|
|||||||
string dailyDir = $"{baseDir}{localPdfPath}\\{adesso:yyyy}\\{adesso:MM}\\{adesso:dd}\\";
|
string dailyDir = $"{baseDir}{localPdfPath}\\{adesso:yyyy}\\{adesso:MM}\\{adesso:dd}\\";
|
||||||
string pdfPathName = $"{dailyDir}\\{name}_{adesso:HHmmss}_{adesso:ffff}.{fileNameExtension}";
|
string pdfPathName = $"{dailyDir}\\{name}_{adesso:HHmmss}_{adesso:ffff}.{fileNameExtension}";
|
||||||
// creo Directory se non c'è
|
// creo Directory se non c'è
|
||||||
fileMover fm = new fileMover(dailyDir, "");
|
if (!Directory.Exists(dailyDir))
|
||||||
fm.checkDir();
|
{
|
||||||
|
Directory.CreateDirectory(dailyDir);
|
||||||
|
}
|
||||||
Stream stream = new FileStream(pdfPathName, FileMode.Create);
|
Stream stream = new FileStream(pdfPathName, FileMode.Create);
|
||||||
m_streams.Add(stream);
|
m_streams.Add(stream);
|
||||||
return stream;
|
return stream;
|
||||||
@@ -299,16 +301,17 @@ namespace LPA
|
|||||||
}
|
}
|
||||||
// ottengo elenco files *.emf
|
// ottengo elenco files *.emf
|
||||||
fileMover.obj.setDirectory(currPath);
|
fileMover.obj.setDirectory(currPath);
|
||||||
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.EMF");
|
var _fis = Directory.GetFiles(currPath, "*.EMF");
|
||||||
bool fatto = false;
|
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)
|
if (fatto)
|
||||||
{
|
{
|
||||||
Log.Instance.Info($"Eliminato file {_file.Name}");
|
Log.Instance.Info($"Eliminato file {file.Name}");
|
||||||
eliminati++;
|
eliminati++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -316,7 +319,34 @@ namespace LPA
|
|||||||
// salvo il log degli update
|
// salvo il log degli update
|
||||||
if (eliminati > 0)
|
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)
|
catch (Exception exc)
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@@ -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>
|
|
||||||
@@ -2,31 +2,20 @@
|
|||||||
using System.Runtime.CompilerServices;
|
using System.Runtime.CompilerServices;
|
||||||
using System.Runtime.InteropServices;
|
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
|
// set of attributes. Change these attribute values to modify the information
|
||||||
// associated with an assembly.
|
// associated with an assembly.
|
||||||
[assembly: AssemblyTitle("VersGen")]
|
[assembly: AssemblyTitle("VersGen2")]
|
||||||
[assembly: AssemblyDescription("")]
|
[assembly: AssemblyDescription("")]
|
||||||
[assembly: AssemblyConfiguration("")]
|
[assembly: AssemblyConfiguration("")]
|
||||||
[assembly: AssemblyProduct("VersGen")]
|
[assembly: AssemblyProduct("VersGen2")]
|
||||||
[assembly: AssemblyTrademark("")]
|
[assembly: AssemblyTrademark("")]
|
||||||
[assembly: AssemblyCulture("")]
|
[assembly: AssemblyCulture("")]
|
||||||
|
|
||||||
// Setting ComVisible to false makes the types in this assembly not visible
|
// 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
|
// to COM components. If you need to access a type in this assembly from
|
||||||
// COM, set the ComVisible attribute to true on that type.
|
// COM, set the ComVisible attribute to true on that type.
|
||||||
[assembly: ComVisible(false)]
|
[assembly: ComVisible(false)]
|
||||||
|
|
||||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||||
[assembly: Guid("58e399f3-9d4e-49d3-ab35-9ed536543d50")]
|
[assembly: Guid("51968c56-2532-4a15-b044-d062233997fa")]
|
||||||
|
|
||||||
// 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.*")]
|
|
||||||
|
|||||||
+1
-1
@@ -5,5 +5,5 @@
|
|||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
[assembly: AssemblyVersion("0.0.0.0")]
|
[assembly: AssemblyVersion("0.0.0.0")]
|
||||||
[assembly: AssemblyFileVersion("0.0.0.0")]
|
[assembly: AssemblyFileVersion("0.0.0.0")]
|
||||||
[assembly: AssemblyCopyright("Steamware © 2006-2021")]
|
[assembly: AssemblyCopyright("Steamware © 2006-2025")]
|
||||||
[assembly: AssemblyCompany("Steamware")]
|
[assembly: AssemblyCompany("Steamware")]
|
||||||
+13
-38
@@ -1,21 +1,19 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<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')" />
|
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||||
<ProjectGuid>{58E399F3-9D4E-49D3-AB35-9ED536543D50}</ProjectGuid>
|
<ProjectGuid>{51968C56-2532-4A15-B044-D062233997FA}</ProjectGuid>
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||||
<RootNamespace>VersGen</RootNamespace>
|
<RootNamespace>VersGen2</RootNamespace>
|
||||||
<AssemblyName>VersGen</AssemblyName>
|
<AssemblyName>VersGen2</AssemblyName>
|
||||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
|
||||||
<FileAlignment>512</FileAlignment>
|
<FileAlignment>512</FileAlignment>
|
||||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
<Deterministic>true</Deterministic>
|
||||||
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<Optimize>false</Optimize>
|
<Optimize>false</Optimize>
|
||||||
@@ -23,10 +21,8 @@
|
|||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
<Optimize>true</Optimize>
|
<Optimize>true</Optimize>
|
||||||
<OutputPath>bin\Release\</OutputPath>
|
<OutputPath>bin\Release\</OutputPath>
|
||||||
@@ -34,26 +30,14 @@
|
|||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Remote_DEBUG|AnyCPU'">
|
||||||
<StartupObject />
|
|
||||||
</PropertyGroup>
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
|
|
||||||
<DebugSymbols>true</DebugSymbols>
|
<DebugSymbols>true</DebugSymbols>
|
||||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
<OutputPath>bin\Remote_DEBUG\</OutputPath>
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>full</DebugType>
|
||||||
<PlatformTarget>x86</PlatformTarget>
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||||
|
<LangVersion>7.3</LangVersion>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<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>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="System" />
|
<Reference Include="System" />
|
||||||
@@ -62,18 +46,16 @@
|
|||||||
<Reference Include="System.Data.DataSetExtensions" />
|
<Reference Include="System.Data.DataSetExtensions" />
|
||||||
<Reference Include="Microsoft.CSharp" />
|
<Reference Include="Microsoft.CSharp" />
|
||||||
<Reference Include="System.Data" />
|
<Reference Include="System.Data" />
|
||||||
|
<Reference Include="System.Net.Http" />
|
||||||
<Reference Include="System.Xml" />
|
<Reference Include="System.Xml" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||||
<Compile Include="VersGen.cs">
|
<Compile Include="VersGen.cs">
|
||||||
<AutoGen>True</AutoGen>
|
<AutoGen>True</AutoGen>
|
||||||
<DesignTime>True</DesignTime>
|
<DesignTime>True</DesignTime>
|
||||||
<DependentUpon>VersGen.tt</DependentUpon>
|
<DependentUpon>VersGen.tt</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
|
||||||
<None Include="App.config" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Content Include="VersGen.tt">
|
<Content Include="VersGen.tt">
|
||||||
@@ -85,11 +67,4 @@
|
|||||||
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
|
<Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
<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>
|
</Project>
|
||||||
Reference in New Issue
Block a user