diff --git a/MP-IO/MP-IO.csproj.user b/MP-IO/MP-IO.csproj.user index e85dec40..391097c4 100644 --- a/MP-IO/MP-IO.csproj.user +++ b/MP-IO/MP-IO.csproj.user @@ -10,7 +10,7 @@ - Debug|Any CPU + Release|Any CPU MvcControllerEmptyScaffolder root/Common/MVC/Controller 600 diff --git a/MP-MON/MP-MON.csproj.user b/MP-MON/MP-MON.csproj.user index 8765882c..3bf3694e 100644 --- a/MP-MON/MP-MON.csproj.user +++ b/MP-MON/MP-MON.csproj.user @@ -19,7 +19,7 @@ - Debug|Any CPU + Release|Any CPU ApiControllerWithActionsScaffolder root/Controller diff --git a/MP-Site/MP-Site.csproj.user b/MP-Site/MP-Site.csproj.user index c2cb7f33..3679bec0 100644 --- a/MP-Site/MP-Site.csproj.user +++ b/MP-Site/MP-Site.csproj.user @@ -8,7 +8,7 @@ - Debug|Any CPU + Release|Any CPU ShowAllFiles IIS02 diff --git a/WebConfigSetter/Program.cs b/WebConfigSetter/Program.cs index f7557983..187427b2 100644 --- a/WebConfigSetter/Program.cs +++ b/WebConfigSetter/Program.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json; using System; using System.IO; +using System.Reflection; using System.Xml; namespace WebConfigSetter @@ -20,7 +21,7 @@ namespace WebConfigSetter #region Protected Properties - protected static string baseDir { get; set; } = @"c:\Steamware\WebConfigSetter"; + protected static string baseDir { get; set; } = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);//@"c:\Steamware\WebConfigSetter"; #if DEBUG protected static string baseWebAppDir { get; set; } = @"\\iis02\c$\inetpub\wwwroot\MP\"; #else @@ -30,7 +31,6 @@ namespace WebConfigSetter protected static string confDir { get; set; } = $@"{baseDir}\CONF"; protected static string currentSetFile { get; set; } = $@"{confDir}\default.json"; - protected static string globalConfFile { get; set; } = $@"{confDir}\settings.json"; /// /// modalità scrittura (altrimenti legge e carica conf parsando i files)