C
C#2y ago
nahr

❔ 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
nahr
nahr2y ago
I kinda solved with configuring RazorViewEngineOptions services.Configure<RazorViewEngineOptions>(o => { o.ViewLocationFormats.Add("youur path.........."); });
Accord
Accord2y ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.