I'm converting ASP.NET MVC projects to ASP.NET Core MVC 3.1 version.
I have mentioned the style paths in bundleconfig.json
file. But how can we render these in ASP.Net Core cshtml files as we do in ASP.Net MVC like below:
@Styles.Render("~/Content/css")
@Styles.Render("~/Content/UserAdmin")
When I try to use the same in .Net Core, I'm getting this error:
The name 'Styles' does not exist in the current context