This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi there, I just installed the VS2012 extension, now I am trying to test it out... I created a new .less file in the Content folder I added a little code //////////////////////////// @backgroundColor: #4D926F; .featured .content-wrapper { background-color: @backgroundColor; } ////////////////////////////// I tried using the bundle thing on MVC 4 to supposedly add the eventual css file, but that does not seem to work. Then a tried adding the straight to the page, also did not work. I then download the less.js file and added that, and followed the sample of linking the 2 files and still did not work. Basically it seem as if the css file is never generated, so I have no idea why and how to fix it... Any ideas? |
|
|
Do you have the Pro version installed? (Less compilation is one of the Pro features). If you do have this installed can you check that the file is marked for compilation under the Mindscape menu, Web Workbench settings.
|
|
|
Thanks for the response, but I don't have the pro. I thought that I would just create the file and bamm it would work, just like the Sass stuff. |
|
|
I purchased the Pro edition and I checked my settings to have less autocompile, and I am also not seeing any CSS files being generated. |
|
|
Check that compilation is not disabled in the settings under Tools/Options/Web Workbench and that compilation is enabled in the project level settings under Mindscape/Web Workbench Settings. The .css file will be linked underneath your .less file so check that its not just a case of it being hidden away there.
|
|
|
Hi Jeremy, I have checked to make sure that compilation is enabled and I have also tried to open or expand the "site.less" somehow to see if "site.css" is hiding somewhere but I have still been unsuccessful. I have attached a screenshot, please let me know if there is anything else I can do to remedy this. |
|
|
Do you have any other extensions such as "Less is CSS" or "Web Essentials" installed? These are known to cause problems as they are also trying to handle .less files.
|
|
|
Wow that was it! I just removed "Web Essentials" and the plugin is working beautifully now and generating the css and min.css. Thank you! |
|