diff --git a/src/Umbraco.Core/Configuration/GlobalSettings.cs b/src/Umbraco.Core/Configuration/GlobalSettings.cs
index 406aa169b6..06083bee3f 100644
--- a/src/Umbraco.Core/Configuration/GlobalSettings.cs
+++ b/src/Umbraco.Core/Configuration/GlobalSettings.cs
@@ -265,10 +265,10 @@ namespace Umbraco.Core.Configuration
/// Value of the setting to be saved.
internal static void SaveSetting(string key, string value)
{
- var fileName = GetFullWebConfigFileName();
+ var fileName = IOHelper.MapPath(string.Format("{0}/appSettings.config", SystemDirectories.Config));
var xml = XDocument.Load(fileName, LoadOptions.PreserveWhitespace);
- var appSettings = xml.Root.Descendants("appSettings").Single();
+ var appSettings = xml.Root.DescendantsAndSelf("appSettings").Single();
// Update appSetting if it exists, or else create a new appSetting for the given key and value
var setting = appSettings.Descendants("add").FirstOrDefault(s => s.Attribute("key").Value == key);
@@ -287,10 +287,10 @@ namespace Umbraco.Core.Configuration
/// Key of the setting to be removed.
internal static void RemoveSetting(string key)
{
- var fileName = GetFullWebConfigFileName();
+ var fileName = IOHelper.MapPath(string.Format("{0}/appSettings.config", SystemDirectories.Config));
var xml = XDocument.Load(fileName, LoadOptions.PreserveWhitespace);
- var appSettings = xml.Root.Descendants("appSettings").Single();
+ var appSettings = xml.Root.DescendantsAndSelf("appSettings").Single();
var setting = appSettings.Descendants("add").FirstOrDefault(s => s.Attribute("key").Value == key);
if (setting != null)
@@ -301,21 +301,6 @@ namespace Umbraco.Core.Configuration
}
}
- private static string GetFullWebConfigFileName()
- {
- var webConfig = new WebConfigurationFileMap();
- var vDir = FullpathToRoot;
-
- foreach (VirtualDirectoryMapping v in webConfig.VirtualDirectories)
- {
- if (v.IsAppRoot)
- vDir = v.PhysicalDirectory;
- }
-
- var fileName = System.IO.Path.Combine(vDir, "web.config");
- return fileName;
- }
-
///
/// Gets the full path to root.
///
diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
index 2217baf276..558f783aa8 100644
--- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
+++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj
@@ -628,6 +628,10 @@
BaseRestExtensions.config
+
+
+ appSettings.config
+
log4net.config
diff --git a/src/Umbraco.Web.UI/config/appSettings.Release.config b/src/Umbraco.Web.UI/config/appSettings.Release.config
new file mode 100644
index 0000000000..eb0329c965
--- /dev/null
+++ b/src/Umbraco.Web.UI/config/appSettings.Release.config
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Umbraco.Web.UI/config/appSettings.config b/src/Umbraco.Web.UI/config/appSettings.config
new file mode 100644
index 0000000000..411a0016bc
--- /dev/null
+++ b/src/Umbraco.Web.UI/config/appSettings.config
@@ -0,0 +1,24 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/Umbraco.Web.UI/web.Template.Debug.config b/src/Umbraco.Web.UI/web.Template.Debug.config
index 4e5907116b..d55dac2a45 100644
--- a/src/Umbraco.Web.UI/web.Template.Debug.config
+++ b/src/Umbraco.Web.UI/web.Template.Debug.config
@@ -46,11 +46,8 @@
-
-
-
-
-
+
+
diff --git a/src/Umbraco.Web.UI/web.Template.Release.config b/src/Umbraco.Web.UI/web.Template.Release.config
index fd0529e962..7f9d2d87cd 100644
--- a/src/Umbraco.Web.UI/web.Template.Release.config
+++ b/src/Umbraco.Web.UI/web.Template.Release.config
@@ -9,14 +9,6 @@
Umbraco RELEASE version - The version that everybody will download and use
-->
-
-
-
-
-
-
diff --git a/src/Umbraco.Web.UI/web.Template.config b/src/Umbraco.Web.UI/web.Template.config
index 9944507d18..57e2e4c89f 100644
--- a/src/Umbraco.Web.UI/web.Template.config
+++ b/src/Umbraco.Web.UI/web.Template.config
@@ -29,28 +29,7 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/src/umbraco.MacroEngines/App.Config b/src/umbraco.MacroEngines/App.Config
deleted file mode 100644
index 0d50dba62f..0000000000
--- a/src/umbraco.MacroEngines/App.Config
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/umbraco.MacroEngines/umbraco.MacroEngines.csproj b/src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
index b1a0b82d13..8fd7650295 100644
--- a/src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
+++ b/src/umbraco.MacroEngines/umbraco.MacroEngines.csproj
@@ -217,9 +217,6 @@
-
- Designer
-