From 101ac61b14fecd56a1769cce044c8af12873fa3f Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Mon, 21 Oct 2024 11:31:52 +0200 Subject: [PATCH] Fix calcolo AppDir x LAND --- MP.Land/MP.Land.csproj | 2 +- MP.Land/Pages/UpdateManager.razor.cs | 15 ++++++++++----- MP.Land/Resources/ChangeLog.html | 2 +- MP.Land/Resources/VersNum.txt | 2 +- MP.Land/Resources/manifest.xml | 2 +- 5 files changed, 14 insertions(+), 9 deletions(-) diff --git a/MP.Land/MP.Land.csproj b/MP.Land/MP.Land.csproj index 58f621ae..81a5305d 100644 --- a/MP.Land/MP.Land.csproj +++ b/MP.Land/MP.Land.csproj @@ -3,7 +3,7 @@ net6.0 MP.Land - 6.16.2410.1818 + 6.16.2410.2111 diff --git a/MP.Land/Pages/UpdateManager.razor.cs b/MP.Land/Pages/UpdateManager.razor.cs index 5be0865f..b3bfcd24 100644 --- a/MP.Land/Pages/UpdateManager.razor.cs +++ b/MP.Land/Pages/UpdateManager.razor.cs @@ -153,6 +153,14 @@ namespace MP.Land.Pages protected override async Task OnInitializedAsync() { ListRecords = null; + +#if DEBUG + AppDir = new DirectoryInfo(Path.Combine("\\\\iis01.egalware.com", "c$\\inetpub\\wwwroot\\MP\\LAND")); +#else + AppDir = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)); +#endif + + await Task.Delay(1); AppMService.ShowSearch = false; AppMService.PageName = "Update Manager"; @@ -265,7 +273,6 @@ namespace MP.Land.Pages #region Private Properties - private DirectoryInfo AppDir => new DirectoryInfo(Path.Combine("\\\\iis01.egalware.com", "c$\\inetpub\\wwwroot\\MP\\LAND")); private List authList { get; set; } = new List(); @@ -279,10 +286,8 @@ namespace MP.Land.Pages /// private int numSteps => authList.Count + 9 + numIOB; -#if DEBUG -#else - private DirectoryInfo AppDir => new DirectoryInfo(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)); -#endif + private DirectoryInfo AppDir { get; set; } = new DirectoryInfo(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location)); + /// /// Nome del file ZIP da gestire diff --git a/MP.Land/Resources/ChangeLog.html b/MP.Land/Resources/ChangeLog.html index c2b0143d..006ec204 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.1818

+

Versione: 6.16.2410.2111


Note di rilascio:
    diff --git a/MP.Land/Resources/VersNum.txt b/MP.Land/Resources/VersNum.txt index 8b81d916..dcd31ace 100644 --- a/MP.Land/Resources/VersNum.txt +++ b/MP.Land/Resources/VersNum.txt @@ -1 +1 @@ -6.16.2410.1818 +6.16.2410.2111 diff --git a/MP.Land/Resources/manifest.xml b/MP.Land/Resources/manifest.xml index b620d29e..f261d8a7 100644 --- a/MP.Land/Resources/manifest.xml +++ b/MP.Land/Resources/manifest.xml @@ -1,6 +1,6 @@ - 6.16.2410.1818 + 6.16.2410.2111 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