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
|
In VS2012 I unchecked "Produce .min.css file" for Less in the tools > options > Webworkbench. When I save a less file, a .min.css is produced anyway, but it's empty and the following error is logged to the output window Failed to minify C:\inetpub\wwwroot\someproject\css\page-background.less: Unable to cast object of type 'Mindscape.VisualSass.Integration.Settings.LessFileSettings' to type 'Mindscape.VisualSass.Integration.Settings.IIncludeFileSettings'. (I'm using Webworkbench pro, latest version afaik) |
|
|
We have seen this error occur in the past when the Visual Studio editor for less files has been overridden by another extension such as Chirpy. Can you check if you have any other extensions which deal with Less installed? If you are using Chirpy you may be able to get away with unchecking the Treat Less as CSS option but otherwise you may need to disable this. There is some discussion on this thread: http://www.mindscapehq.com/forums/thread/302901 which goes into a few instances of where this occurred and disabling the conflicting plugins solved the issue in each case there. Let us know how you get on with this or if you don't have any other extensions installed in which case this may be a different issue.
|
|
|
I don't have Chirpy, but I saw that I had to install VS2012 SP1 still, and after that the problem went away! |
|
|
The problem came back, I closed the editor for the file and now it works again. I realized I just renamed the file I was working on from .css to .less. So saving the new .less tries to use webworkbench, but somehow the editor isn't completely reinitialised. I guess this was the problem the previous time... |
|