diff --git a/src/Umbraco.Web/Mvc/PluginViewEngine.cs b/src/Umbraco.Web/Mvc/PluginViewEngine.cs index 96f393920e..6c0d80d058 100644 --- a/src/Umbraco.Web/Mvc/PluginViewEngine.cs +++ b/src/Umbraco.Web/Mvc/PluginViewEngine.cs @@ -84,7 +84,7 @@ namespace Umbraco.Web.Mvc { using (var writer = File.CreateText(Path.Combine(viewFolder, "web.config"))) { - writer.Write(Strings.web_config); + writer.Write(Strings.WebConfigTemplate); } } } diff --git a/src/Umbraco.Web/Mvc/RenderViewEngine.cs b/src/Umbraco.Web/Mvc/RenderViewEngine.cs index 650794b3a2..9df3f0b5a5 100644 --- a/src/Umbraco.Web/Mvc/RenderViewEngine.cs +++ b/src/Umbraco.Web/Mvc/RenderViewEngine.cs @@ -54,7 +54,7 @@ namespace Umbraco.Web.Mvc { using (var writer = File.CreateText(Path.Combine(viewFolder, "web.config"))) { - writer.Write(Strings.web_config); + writer.Write(Strings.WebConfigTemplate); } } //auto create the partials folder diff --git a/src/Umbraco.Web/Mvc/Strings.Designer.cs b/src/Umbraco.Web/Mvc/Strings.Designer.cs index 94e4648bcf..fb978890d0 100644 --- a/src/Umbraco.Web/Mvc/Strings.Designer.cs +++ b/src/Umbraco.Web/Mvc/Strings.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18034 +// Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -62,21 +62,16 @@ namespace Umbraco.Web.Mvc { /// /// Looks up a localized string similar to <?xml version="1.0"?> - /// ///<configuration> - /// <system.web.webPages.razor> - /// <host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> - /// <pages pageBaseType="System.Web.Mvc.WebViewPage"> - /// <namespaces> - /// <add namespace="System.Web.Mvc" /> - /// <add namespace="System.Web.Mvc.Ajax" /> - /// <add namespace="System.Web.Mvc.Html" /> - /// <add namespace="System.Web.Routing" /> - /// <add namespace="Umbra [rest of string was truncated]";. + /// + /// <configSections> + /// <sectionGroup name="system.web.webPages.razor" type="System.Web.WebPages.Razor.Configuration.RazorWebSectionGroup, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"> + /// <section name="host" type="System.Web.WebPages.Razor.Configuration.HostSection, System.Web.WebPages.Razor, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" /> + /// <section name="page [rest of string was truncated]";. /// - internal static string web_config { + internal static string WebConfigTemplate { get { - return ResourceManager.GetString("web_config", resourceCulture); + return ResourceManager.GetString("WebConfigTemplate", resourceCulture); } } } diff --git a/src/Umbraco.Web/Mvc/Strings.resx b/src/Umbraco.Web/Mvc/Strings.resx index 270e6fc616..bcbd6eea44 100644 --- a/src/Umbraco.Web/Mvc/Strings.resx +++ b/src/Umbraco.Web/Mvc/Strings.resx @@ -118,7 +118,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - web.config.template;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;utf-8 + + ..\..\umbraco.web.ui\views\web.config;System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089;Windows-1252 \ No newline at end of file diff --git a/src/Umbraco.Web/Mvc/web.config.template b/src/Umbraco.Web/Mvc/web.config.template deleted file mode 100644 index daa65d7de1..0000000000 --- a/src/Umbraco.Web/Mvc/web.config.template +++ /dev/null @@ -1,65 +0,0 @@ - - - - - -
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/src/Umbraco.Web/UI/JavaScript/ServerVariablesParser.cs b/src/Umbraco.Web/UI/JavaScript/ServerVariablesParser.cs index e9d4532c52..6b32c68b2c 100644 --- a/src/Umbraco.Web/UI/JavaScript/ServerVariablesParser.cs +++ b/src/Umbraco.Web/UI/JavaScript/ServerVariablesParser.cs @@ -9,7 +9,7 @@ namespace Umbraco.Web.UI.JavaScript { /// - /// Can allow developers to add custom variables on startup + /// Could allow developers to add custom variables on startup - not sure if we want to allow that ? maybe. /// internal static EventHandler> Parsing; diff --git a/src/Umbraco.Web/Umbraco.Web.csproj b/src/Umbraco.Web/Umbraco.Web.csproj index d3d8dc1cf4..ae2aed1ae0 100644 --- a/src/Umbraco.Web/Umbraco.Web.csproj +++ b/src/Umbraco.Web/Umbraco.Web.csproj @@ -1791,6 +1791,9 @@ Component + + Mvc\web.config + MSDiscoCodeGenerator Reference.cs @@ -1901,7 +1904,6 @@ - diff --git a/src/umbraco.cms/PluginManagerExtensions.cs b/src/umbraco.cms/PluginManagerExtensions.cs index a51c0b3af0..86605a356d 100644 --- a/src/umbraco.cms/PluginManagerExtensions.cs +++ b/src/umbraco.cms/PluginManagerExtensions.cs @@ -40,6 +40,7 @@ namespace umbraco.cms /// /// /// + [Obsolete("We don't use IMediaFactory anymore, we need to remove this when we remove the MediaFactory instance that uses this method")] internal static IEnumerable ResolveMediaFactories(this PluginManager resolver) { return resolver.ResolveTypes();