❔ Asp net core routing
Hi,
I would like to build a folder structure like this:
-Controllers (folder)
-Products (folder)
NewProducts (controller)
OldProducts (controller)
Foo (controller)
Bar (controller)
-Views (folder)
-Products (folder)
-NewProducts (folder)
index.cshtml
details.cshtml
-OldProducts (folder)
index.cshtml
details.cshtml
My issue is that the the views cannot be found
2 Replies
I kinda solved with configuring RazorViewEngineOptions
services.Configure<RazorViewEngineOptions>(o =>
{
o.ViewLocationFormats.Add("youur path..........");
});
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.