title: Where to place @Scripts.Render and @Styles.Render
body: <p>I am quite confused about where to place @Scripts.Render and @Styles.Render. Ideally I would put them all inside head section but unexpectedly, for example, @Scripts.Render("~/bundles/bootstrap") won't work at all unless I put it inside body section, after @RenderBody().</p>
  
  <p>Same confusion for where to place @Mvc.RazorTools.BundleManager.Styles.Render() and @RenderSection("scripts", required: false).</p>
  
  <p>A final word about them would be really appreciated.</p>
  
  <p>p.s. There is another similar answer to this question but the only similarity is in the title as the problem was in missing files, not in placement. Also that question does not address both scripts AND styles.</p>
  
  <p>Adding bundles for sake of completion:</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundles/bundlejquery").Include(
                      "~/Scripts/jquery-1.12.4.js",
                     "~/Scripts/jquery-ui-1.12.1.js",
                     "~/Scripts/jquery.validate.min.js",
                     "~/Scripts/jquery.validate.unobtrusive.min.js"));
  
  bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                    "~/Scripts/bootstrap.js",
                    "~/Scripts/respond.js"));
  </code></pre>