asp.netsquishit

Error to Integrating SquishIt with Asp.Net


i'm trying to use SquishIt in my Asp.net pages, but i'm receiving this error bellow

enter image description here

My code : <%@ Import Namespace="SquishIt.Framework" %>

Web config : debug false


Solution

  • This has nothing to do with whatever SquishIt is.

    In VB a carriage return is part of the syntax. (Unlike C# which treats a carriage return as meaningless whitespace.) So this code is invalid:

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

    In VB you'd either need to have it on one line:

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

    or explicitly separate the lines:

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