Skip to content

Instantly share code, notes, and snippets.

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

This comment has been minimized.

Copy link

@mattcan 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

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