Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Change component view location in Asp.Net 5

$
0
0

Hello,

On ASP.NET 5 a Component view must be in one of two places:

    Views/NameOfControllerUsingComponent/Components/ComponentName/Default.cshtml
    Views/Shared/Components/ComponentName/Default.cshtml

Is there a way to change this to:

    Views/NameOfControllerUsingComponent/Components/ComponentName.cshtml
    Views/Shared/Components/ComponentName.cshtml

So basically, remove the folder ComponentName and change the view name from Default.cshtml to ComponentName.cshtml.

For me it makes more sense ... Is it possible?

Thank You,

Miguel


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>