Answer the question
In order to leave comments, you need to log in
How to correctly add a resource from a scope to a bundle in an ASP NET MVC project?
Inside the area I create a BundleConfig in which I want to form a package from the styles used in the views inside the area:
Folder structure:
Areas
........Admin
................Content
... .................css
................Controllers
........... .....Views
Content
........css
...
BundleConfig area:
internal static class BundleConfig
{
internal static void RegisterBundles(BundleCollection bundles)
{
bundles.Add(new StyleBundle("~/Admin/css").Include(
"~/Content/css/bootstrap.min.css"));
}
}
bundles.Add(new StyleBundle("~/Admin/css").Include(
"~/Areas/Admin/Content/css/bootstrap.min.css"));
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question