我想使用里面的 SquishIt nuget 包和在 Windows Azure 上运行的 MVC3 应用程序。我正在使用 SquishIt 进行 CSS 和 JS 的组合和缩小。
在我的 Views/Shares/_Layout.cshtml 我有以下几行:
@MvcHtmlString.Create(
Bundle
.Css()
.Add("~/Content/templates/style.css")
.Add("~/Content/market.css")
.Add("~/Content/jquery-ui-theme/jquery-ui-1.8.17.custom.css")
.ForceRelease()
.Render("/Cache/combined-css_#.css"))
这导致一个
"System.IO.IOException: Unable to open file"
我在这里找到了一些东西http://www.bondigeek.com/blog/2011/03/22/all-is-quiet-not-on-the-azure-front/但这实际上不是我想要的。一般情况下,SquishIt 应该可以写入 Azure VM 的磁盘,但可能是目录错误或安全权限不足。任何想法?