From b9e397ed3ba8d93bafedffd58c255f15e42542c5 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Mon, 5 Jun 2017 17:20:57 -0700 Subject: [PATCH] Temporarily workaround TryGetPageDirective returning null instead of empty string. --- .../Internal/PrecompileRunCommand.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs index bfaf5d2aae..ec573ab023 100644 --- a/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs +++ b/src/Microsoft.AspNetCore.Mvc.Razor.ViewCompilation/Internal/PrecompileRunCommand.cs @@ -249,7 +249,7 @@ namespace Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.Internal if (PageDirectiveFeature.TryGetPageDirective(fileInfo.CreateReadStream, out var template)) { - compilationInfo.RouteTemplate = template; + compilationInfo.RouteTemplate = template ?? string.Empty; } results[i] = compilationInfo;