Asp.net mvc 捆绑包在MVC应用程序中未正确呈现

Asp.net mvc 捆绑包在MVC应用程序中未正确呈现,asp.net-mvc,asp.net-mvc-4,Asp.net Mvc,Asp.net Mvc 4,我创建了一个新的MVC应用程序,但愚蠢地没有使用应用程序模板,所以我不得不手动设置所有的nuget软件包。我想我还是缺少了一些东西,因为我的包渲染不正确 @Styles.Render("~/Content/css") 呈现为 <link href="/Content/css" rel="stylesheet"> 即使我已经在web.config和BundleTable.EnableOptimizations=false中找到了;在我的bundle配置中。当我提出问题时,我会立即得

我创建了一个新的MVC应用程序,但愚蠢地没有使用应用程序模板,所以我不得不手动设置所有的nuget软件包。我想我还是缺少了一些东西,因为我的包渲染不正确

@Styles.Render("~/Content/css")
呈现为

<link href="/Content/css" rel="stylesheet">

即使我已经在web.config和BundleTable.EnableOptimizations=false中找到了;在我的bundle配置中。

当我提出问题时,我会立即得出答案

global.asax.cs没有调用RegisterBundle方法

BundleConfig.RegisterBundles(BundleTable.Bundles);