+1-888-365-2779
Try Now
More in this section

Forums / Thunder / visualstudio project suggestion

visualstudio project suggestion

12 posts, 0 answered
  1. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    07 Mar 2012
    Link to this post
    As by Hristo's request, see attached images... :D

    Jochem.
  2. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    07 Mar 2012
    Link to this post
    I'm gonna try too

  3. Dan Sorensen
    Dan Sorensen avatar
    256 posts
    Registered:
    13 Aug 2010
    13 Mar 2012
    Link to this post
    It would be cool if the Thunder project would combine and minimize the CSS before uploading. I would use LESS if it had it too.

    I would have uploaded a picture, but clearly Jochem has artistic abilities much better than my own. ;-)
  4. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    13 Mar 2012
    Link to this post
    @Dan

    Unless you're obsessed with manually controlling every bit and piece, I definitely recommend Chirpy (until further progress on JustCode and Thunder's been made). No more NuGet packages of dotLess or YUI compressor, no more pre/post build tasks - just edit your .less / .css file, hit save and you're done....

    It's a VisualStudio extension which works with 2008/2010 and is totally unobtrusive. By just naming your file filename.yui.less or filename.msajax.less it'll automatically create a regular css (for development) and a minified css for you. The YUI and MSASJAX stand for which compressor you prefer. It also works for Javascript, Closure, Cofeescript and regular .css

    It comes with some basic syntax highlighting for .less files (so no more need for Mindscape Web Workbench - with their new annoying please upgrade pop-ups wohoo!)

    ---
     In case of Sitefinity and Thunder, I'm writing .less in my Thunder project and manually included the .min.css into the project so it gets published/uploaded. For Javascript files (regular VisualStudio project) I have the regular Javascript files set to 'not publish' and the .min.js files to 'publish'.

    So far the only downside of Chirpy is the inability to bundle, but that's going to be part of .NET 4.5 anyway...

    Jochem
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    15 Mar 2012
    Link to this post
    Why not using the Microsoft.Web.Optimization? I know, it will be part of .NET 4.5, but is available through NuGet and works great.

    -Daniel
  6. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    15 Mar 2012
    Link to this post
    IIIInteresting idea Daniel! :)

    You're using it w/out issues?

    For others: LINK
  7. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    15 Mar 2012
    Link to this post
    @Steve: yes, almost on all my websites. I'm not doing LESS, but the minification and bundling works without problems. I'm not working with SF Themes, so not checked that approach.
  8. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    16 Mar 2012
    Link to this post
    @Daniel,

    The first time you mentioned it (the previous release of the NuGet package) it had a problem with vendor prefixes. I tried to find whether this was solved now with the new release, but couldn't find any information.

    Do you know if the current version no longer has problems with prefixes?

    Jochem.
  9. Stacey
    Stacey avatar
    291 posts
    Registered:
    18 Oct 2012
    12 Apr 2012
    Link to this post
    Jochem,

    What did you have to do to enable intellisense for the .less file?  I am able to get the .css and .min.css files to generate just fine, but the .less file functions as a normal text file in that I do not get any type of intellisense or code formating.
  10. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
  11. Jochem Bökkers
    Jochem Bökkers avatar
    787 posts
    Registered:
    13 Aug 2007
    13 Apr 2012
    Link to this post
    @Stacey,

    Steve's Mindscape WebWorkbench is indeed great (if you pay $39). The free version also does syntax highlighting but its got annoying pop-ups and things like you can't click the standard 'comment out' button from VisualStudio but have to manually type /*  */ to comment out some .less/.css.

    If you grab the latest source code of Zippy/Chirpy and build it, you'll end up with a newer version than the current 'release version' in VisualStudio Gallery. You'll need version 2.05 at the minimum for syntax highlighting support. (Or grab the .zip file I made from the compiled source)

    I totally agree with Steve that if you buy the full version of Web Workbench, you will love it - but I'm waiting for JustCode and the next version of VisualStudio to suppport .LESS syntax high-lighting. So even though it may be just $39 its something that next Q hopefully won't be needed no more...

    Jochem.
  12. Stacey
    Stacey avatar
    291 posts
    Registered:
    18 Oct 2012
    13 Apr 2012
    Link to this post
    @Jochem

    Thanks for the files.  I am still not getting syntax highlighting and the option is selected and VS was restarted.  I may uninstall and try again as I had the older version still installed when I did this.

    @Steve

    I have been looking at Mindscape as an option, but I am not willing to pay for something right now when there is a good chance VS2011 or future plugins will meet this need for me. (one can hope!)  I still may try the free edition.

    Either way I really want to start working with LESS to get a feel for it.

    p.s. I am not saying $39 is not worth the product, but until I want to learn and use LESS before I start buying feature sets to determine if I like it.
12 posts, 0 answered