From ab64769c59fae2a0942ded9e9242c2b4ee81b908 Mon Sep 17 00:00:00 2001 From: Pranav K Date: Thu, 25 May 2017 10:18:59 -0700 Subject: [PATCH] Fix compilation failure --- .../Controllers/HomeController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testapps/ApplicationWithCustomInputFiles/Controllers/HomeController.cs b/testapps/ApplicationWithCustomInputFiles/Controllers/HomeController.cs index ccf4d1060f..90009a185a 100644 --- a/testapps/ApplicationWithCustomInputFiles/Controllers/HomeController.cs +++ b/testapps/ApplicationWithCustomInputFiles/Controllers/HomeController.cs @@ -1,4 +1,5 @@ using System; +using System.Linq; using System.Reflection; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.ApplicationParts; @@ -17,7 +18,7 @@ namespace ApplicationWithCustomInputFiles.Controllers { var feature = new ViewsFeature(); applicationManager.PopulateFeature(feature); - return string.Join(Environment.NewLine, feature.Views.Keys); + return string.Join(Environment.NewLine, feature.ViewDescriptors.Select(v => v.RelativePath)); } } }