Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Include this after .AddMvc under ConfigureServices in Startup.cs
services.Configure<RazorViewEngineOptions>(options =>
{
options.ViewLocationExpanders.Add(new FeatureLocationExpander());
});
@mattcan

This comment has been minimized.

Copy link

mattcan commented Apr 17, 2017

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 least

https://docs.microsoft.com/en-us/aspnet/core/api/microsoft.aspnetcore.mvc.razor.razorviewengineoptions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment