Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
发布ASP.NET MVC应用程序时出现CSS绑定问题_Css_Asp.net Mvc 5_Publish - Fatal编程技术网

发布ASP.NET MVC应用程序时出现CSS绑定问题

发布ASP.NET MVC应用程序时出现CSS绑定问题,css,asp.net-mvc-5,publish,Css,Asp.net Mvc 5,Publish,我试图在本地网络服务器上发布我的ASP.NET MVC 5应用程序,但未找到我在布局视图中绑定的CSS文件(bundleConfig.cs中的绑定定义为 bundles.Add(new StyleBundle("~/Content/css").Include( "~/Content/bootstrap.css", "~/Content/site.css")); ),当我更换 @Styles.Render(“

我试图在本地网络服务器上发布我的ASP.NET MVC 5应用程序,但未找到我在布局视图中绑定的CSS文件(bundleConfig.cs中的绑定定义为

bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/site.css"));
),当我更换
@Styles.Render(“~/Content/css”)



它可以工作。

发布您的
捆绑包定义“~/Content/css”
您找到解决方案了吗?
<link href="~/Content/bootstrap.css" rel="stylesheet" />
<link href="~/Content/Site.css" rel="stylesheet" />