I am starting a project in ASP .NET MVC 5 in Visual Studio 2017, I have created my BundleConfig.cs file with the following information:
using System.Web;
using System.Web.Optimization;
namespace Login
{
public class BundleConfig
{
public static void RegisterBundles(BundleCollection bundles)
{
// jQuery
bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
"~/Scripts/jquery-3.1.1.min.js"));
// CSS
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.min.css",
"~/Content/animate.css",
"~/Content/style.css"));
}
}
}
I have in my _LayoutPage.cshtml the following in the header:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
@Styles.Render("~/Content/css")
@Styles.Render("~/font-awesome/css")
</head>
and when loading my page it appears without styles, if I check the console (F12) of the browser I see the routes that were not found with an error 404