Answer the question
In order to leave comments, you need to log in
Why might the MVC 5 bundle not work?
There is a standard bundle
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
bundles.Add(new StyleBundle("~/Content/landing-css").Include(
"~/Content/bootstrap.css",
"~/Content/css/landing.css"));
<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">
<title>@ViewBag.Title – приложение ASP.NET</title>
@Styles.Render("~/Content/css")
@Scripts.Render("~/bundles/modernizr")
</head>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootstrap")
@Styles.Render("~/Content/landing-css")
Answer the question
In order to leave comments, you need to log in
The question is removed. After it turned out that the branch was working fine for my colleagues, I climbed through several of my branches, trying to figure out exactly where it glitched, and then it magically worked. What exactly was wrong remained a mystery, apparently a studio glitch. It's a pity that the day was spent searching for something incomprehensible.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question