Compare commits

...
Author SHA1 Message Date
Claus c1ba981ed7 updating syntax. 2019-11-21 21:50:39 +01:00
Claus 1358bbf5ca Removing the MiniProfiler routes if solution is not in debug mode. 2019-11-20 14:20:19 +01:00
5 changed files with 29 additions and 8 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
# Usage: on line 2 put the release version, on line 3 put the version comment (example: beta)
7.5.14
7.5.15
+3 -3
View File
@@ -2,7 +2,7 @@
using System.Resources;
[assembly: AssemblyCompany("Umbraco")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2017")]
[assembly: AssemblyCopyright("Copyright © Umbraco 2019")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -11,5 +11,5 @@ using System.Resources;
[assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyFileVersion("7.5.14")]
[assembly: AssemblyInformationalVersion("7.5.14")]
[assembly: AssemblyFileVersion("7.5.15")]
[assembly: AssemblyInformationalVersion("7.5.15")]
@@ -6,7 +6,7 @@ namespace Umbraco.Core.Configuration
{
public class UmbracoVersion
{
private static readonly Version Version = new Version("7.5.14");
private static readonly Version Version = new Version("7.5.15");
/// <summary>
/// Gets the current version of Umbraco.
+2 -2
View File
@@ -2423,9 +2423,9 @@ xcopy "$(ProjectDir)"..\packages\SqlServerCE.4.0.0.1\x86\*.* "$(TargetDir)x86\"
<WebProjectProperties>
<UseIIS>True</UseIIS>
<AutoAssignPort>True</AutoAssignPort>
<DevelopmentServerPort>7514</DevelopmentServerPort>
<DevelopmentServerPort>7515</DevelopmentServerPort>
<DevelopmentServerVPath>/</DevelopmentServerVPath>
<IISUrl>http://localhost:7514</IISUrl>
<IISUrl>http://localhost:7515</IISUrl>
<NTLMAuthentication>False</NTLMAuthentication>
<UseCustomServer>False</UseCustomServer>
<CustomServerUrl>
@@ -1,7 +1,10 @@
using System;
using System.Linq;
using System.Threading;
using System.Web;
using System.Web.Routing;
using StackExchange.Profiling;
using Umbraco.Core.Configuration;
namespace Umbraco.Web.Profiling
{
@@ -24,6 +27,24 @@ namespace Umbraco.Web.Profiling
{
// booting...
_bootPhase = BootPhase.Boot;
// Remove Mini Profiler routes when not in debug mode
if (GlobalSettings.DebugMode == false)
{
//NOTE: Keep the global fully qualified name, for some reason without it I was getting null refs
var prefix = global::StackExchange.Profiling.MiniProfiler.Settings.RouteBasePath.Replace("~/", string.Empty);
using (RouteTable.Routes.GetWriteLock())
{
var routes = RouteTable.Routes.Where(x =>
{
var route = x as Route;
return route != null && route.Url.StartsWith(prefix);
}).ToList();
foreach(var r in routes)
RouteTable.Routes.Remove(r);
}
}
}
/// <summary>
@@ -118,4 +139,4 @@ namespace Umbraco.Web.Profiling
}
}
}
}
}