将SquishIt与Asp.Net集成时出错

时间:2015-04-08 00:56:18

标签: asp.net squishit

我正在尝试在我的Asp.net页面中使用SquishIt,但我收到此错误

enter image description here

我的代码:<%@ Import Namespace =“SquishIt.Framework”%>

Web配置:debug false

1 个答案:

答案 0 :(得分:1)

这与SquishIt无关。

在VB中,回车是语法的一部分。 (与将回车视为无意义的空格的C#不同。)因此,此代码无效:

Bundle.Css()
  .Add("something")
  ' and so on

在VB中,您需要将它放在一行:

Bundle.Css().Add("something") ' and so on

或明确区分这些行:

Bundle.Css() _
  .Add("something") _
  ' and so on