Hi I am trying to bundle my scripts for my application. My debug is working and if I publish with the Web.debug every thing works fine. But when I publish with the Web.releas my
Let's do some grave digging. Today I started fiddeling around with Azure and promptly ran into a similar problem.
the style bundle was defined like this:
bundles.Add(new StyleBundle("~/Styles/css").Include(
"~/Content/bootstrap.superhero.css",
"~/Content/site.css"));
But no css was being rendered.
After almost opening up a second question I realized, that the file bootstrap.superhero.css
was greyed out in the solution explorer. What was working locally in Visual Studio, was failing in Azure, because the file was not yet implemented in the project.
Tl;dr: Right-click the Css file and then "Include in project"