我正在尝试在本地网络服务器上发布我的ASP.NET MVC 5应用程序,找不到我在布局视图中捆绑的CSS文件(bundleConfig.cs中的包定义是
bundles.Add(new StyleBundle("~/Content/css").Include(
"~/Content/bootstrap.css",
"~/Content/site.css"));
),当我更换
@Styles.Render("~/Content/css")
与
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<link href="~/Content/Site.css" rel="stylesheet" />
它有效。