From 15dc9b4334eb2c855d7e257ff02497484ae42ab0 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Tue, 22 Oct 2024 15:16:45 +0200 Subject: [PATCH] LAND - folder IOB upload esplicitata in config x esteso --- MP.Land/MP.Land.csproj | 2 +- MP.Land/Pages/UpdateManager.razor.cs | 6 ++++-- MP.Land/Resources/ChangeLog.html | 2 +- MP.Land/Resources/VersNum.txt | 2 +- MP.Land/Resources/manifest.xml | 2 +- MP.Land/appsettings.Development.json | 25 ++++++++++++++++--------- MP.Land/appsettings.Production.json | 1 + MP.Land/appsettings.json | 5 +++-- 8 files changed, 28 insertions(+), 17 deletions(-) diff --git a/MP.Land/MP.Land.csproj b/MP.Land/MP.Land.csproj index cf9b8710..3efa1241 100644 --- a/MP.Land/MP.Land.csproj +++ b/MP.Land/MP.Land.csproj @@ -3,7 +3,7 @@ net6.0 MP.Land - 6.16.2410.2117 + 6.16.2410.2215 Debug;Release;Debug_LiManDebug diff --git a/MP.Land/Pages/UpdateManager.razor.cs b/MP.Land/Pages/UpdateManager.razor.cs index d4c74aaf..9b42b410 100644 --- a/MP.Land/Pages/UpdateManager.razor.cs +++ b/MP.Land/Pages/UpdateManager.razor.cs @@ -385,13 +385,15 @@ namespace MP.Land.Pages { Directory.CreateDirectory(dstDir); } - string srcIobDir = Path.Combine(AppDir.Parent.FullName, "IO", "fileUpload"); + // recupero IOB folder relativa alla parent dir + //string srcIobDir = Path.Combine(AppDir.Parent.FullName, "IO", "fileUpload"); + string srcIobDir = Configuration.GetValue("ServerConf:IobUploadPath"); // recupero elenco files tipo appsettings*.json if (Directory.Exists(srcIobDir)) { var dirInfo = new DirectoryInfo(srcIobDir); // recupero files CORE - List fileList = dirInfo.GetFiles().ToList(); + List fileList = dirInfo.GetFiles("*", SearchOption.AllDirectories).ToList(); // procedo! foreach (var file in fileList) { diff --git a/MP.Land/Resources/ChangeLog.html b/MP.Land/Resources/ChangeLog.html index dc03b505..1755be06 100644 --- a/MP.Land/Resources/ChangeLog.html +++ b/MP.Land/Resources/ChangeLog.html @@ -1,6 +1,6 @@ Modulo Tablet MAPO - DotNet6 -

Versione: 6.16.2410.2117

+

Versione: 6.16.2410.2215


Note di rilascio:
    diff --git a/MP.Land/Resources/VersNum.txt b/MP.Land/Resources/VersNum.txt index e706b43e..892d8f51 100644 --- a/MP.Land/Resources/VersNum.txt +++ b/MP.Land/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2410.2117 +6.16.2410.2215 diff --git a/MP.Land/Resources/manifest.xml b/MP.Land/Resources/manifest.xml index e04e9e48..cd262318 100644 --- a/MP.Land/Resources/manifest.xml +++ b/MP.Land/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2410.2117 + 6.16.2410.2215 https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/MP.Land.zip https://nexus.steamware.net/repository/SWS/MP-LAND/stable/LAST/ChangeLog.html false diff --git a/MP.Land/appsettings.Development.json b/MP.Land/appsettings.Development.json index 95f2b1fa..5bb31b84 100644 --- a/MP.Land/appsettings.Development.json +++ b/MP.Land/appsettings.Development.json @@ -1,11 +1,18 @@ { - //"DetailedErrors": true, - //"Logging": { - // "LogLevel": { - // "Default": "Information", - // "Microsoft": "Warning", - // "Microsoft.Hosting.Lifetime": "Information" - // } - //}, - "Environment": "Steam DEV" + "DetailedErrors": true, + "Logging": { + "LogLevel": { + "Default": "Information", + "Microsoft": "Warning", + "Microsoft.Hosting.Lifetime": "Information" + } + }, + "Environment": "Steam DEV", + "ServerConf": { + "BaseUrl": "https://localhost:44309/", + "CodApp": "MP-LAND", + "IobUploadPath": "\\\\iis01\\c$\\inetpub\\wwwroot\\MP\\fileUpload", + "Modulo": "MoonPro", + "downloadPath": "C:\\Steamware\\installers\\MP" + } } \ No newline at end of file diff --git a/MP.Land/appsettings.Production.json b/MP.Land/appsettings.Production.json index 9958c471..4af9ea29 100644 --- a/MP.Land/appsettings.Production.json +++ b/MP.Land/appsettings.Production.json @@ -19,6 +19,7 @@ }, "ServerConf": { "BaseUrl": "https://iis02.egalware.com/", + "IobUploadPath": "C:\\inetpub\\wwwroot\\MP\\fileUpload", "downloadPath": "C:\\Steamware\\installers\\MP" } } \ No newline at end of file diff --git a/MP.Land/appsettings.json b/MP.Land/appsettings.json index 0e1f948a..e0a19832 100644 --- a/MP.Land/appsettings.json +++ b/MP.Land/appsettings.json @@ -66,9 +66,10 @@ "SafePages": "||LAND|Home|Index|About|Help|Unauthorized|" }, "ServerConf": { - "CodApp": "MP-LAND", - "Modulo": "MoonPro", "BaseUrl": "https://localhost:44309/", + "CodApp": "MP-LAND", + "IobUploadPath": "C:\\inetpub\\wwwroot\\MP\\fileUpload", + "Modulo": "MoonPro", "downloadPath": "C:\\Steamware\\installers\\MP" } } \ No newline at end of file