WebConfigSetter:
- Aggiunta gest ServerConf in sostituzioni previste
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.4.33205.214
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConfMan.IOB.CApp", "ConfMan.IOB.CApp\ConfMan.IOB.CApp.csproj", "{0AB75639-33AF-4D22-B610-D91419364F6A}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConfMan.IOB.Core", "ConfMan.IOB.Core\ConfMan.IOB.Core.csproj", "{79148FB8-2725-4D3F-ADE5-3842BE730B2C}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{0AB75639-33AF-4D22-B610-D91419364F6A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0AB75639-33AF-4D22-B610-D91419364F6A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0AB75639-33AF-4D22-B610-D91419364F6A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0AB75639-33AF-4D22-B610-D91419364F6A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{79148FB8-2725-4D3F-ADE5-3842BE730B2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{79148FB8-2725-4D3F-ADE5-3842BE730B2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{79148FB8-2725-4D3F-ADE5-3842BE730B2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{79148FB8-2725-4D3F-ADE5-3842BE730B2C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {8ED73DB2-3E3C-40E9-8C5E-0425D3BC9F89}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -323,6 +323,17 @@ namespace WebConfigSetter
|
||||
}
|
||||
}
|
||||
}
|
||||
if (currJsonConf["ServerConf"] != null)
|
||||
{
|
||||
foreach (var keySubst in currConfig.jsonConnStrRules)
|
||||
{
|
||||
if (currJsonConf["ServerConf"][keySubst.Key] != null)
|
||||
{
|
||||
currJsonConf["ServerConf"][keySubst.Key].Replace(keySubst.Value);
|
||||
changed = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
string newFileData = JsonConvert.SerializeObject(currJsonConf, Newtonsoft.Json.Formatting.Indented);
|
||||
if (changed)
|
||||
|
||||
Reference in New Issue
Block a user