coding/asp.net

[.net] bootstrap 최신 업그레이드 후, bundles 오류, @Scripts.Render("~/bundles/bootstrap")

사과키라임파이 2022. 4. 28. 01:02

_Layout.cshtml

@Scripts.Render("~/bundles/bootstrap") 에서 오류가 남.

 

 

BundleConfig.cs에서

 

bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js"));

 이 내용에서 Script 삭제

 

bundles.Add(new Bundle("~/bundles/bootstrap").Include(
                      "~/Scripts/bootstrap.js"));

으로 변경