Not able to install bootstrap 4 (beta) nuget package to .Net MVC (.Net version 4.6.2)

前端 未结 9 1814
Happy的楠姐
Happy的楠姐 2021-02-19 07:58

I am not able to install bootstrap 4(beta) to my MVC project. To be precise popper.js nuget dependency is failing to install. Please let me know any possible way to do it(bower

9条回答
  •  无人共我
    2021-02-19 08:29

    For uses of ASP.NET Webforms:

    I've created a new Project with preinstalled Packages (Bootstrap, Popper, jQuery), updated them to the newest version and did:

    1. add to App_Start/BundleConfig.cs

      bundles.Add(new ScriptBundle("~/bundles/popper").Include(
                "~/Scripts/umd/popper.js"));
      
    2. Add to Header (Master Page)

      <%: Scripts.Render("~/bundles/popper") %> <%: Scripts.Render("~/bundles/bootstrap")%>

提交回复
热议问题