Created
April 25, 2016 03:49
-
-
Save scottsauber/018f4d633e06ff4d713f73fc99698b52 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Include this after .AddMvc under ConfigureServices in Startup.cs | |
services.Configure<RazorViewEngineOptions>(options => | |
{ | |
options.ViewLocationExpanders.Add(new FeatureLocationExpander()); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For those of us not in Visual Studio, you'll want a
using Microsoft.AspNetCore.Mvc.Razor;
at the top. In .NET Core 1.1 at leasthttps://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.mvc.razor.razorviewengineoptions