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
|
I'm getting the current error message while trying to save a .less file on the latest version of Web Workbench: Failed to minify myfile.css. Unable to cast object of type 'Mindscape.VisualSass.Integration.Settings.LessFileSettings' to type 'Mindscape.VisualSass.Integration.Settings.IIncludeFileSettings Do I have some corrupt settings? |
|
|
The only way I can see this happening is if Visual Studio has mapped the .less file extension to the internal "CSS" content type. I believe some versions of Chirpy do this. Do you have Chirpy installed? If so we advise upgrading to a more recent build and turning off the "treat Less as CSS" option. The official Chirpy site is at http://chirpy.codeplex.com/ (you will need a build dated Feb 2012 or above; last time I looked the binaries hadn't yet been updated with this option) and a couple of our customers have posted unofficial builds and linked them from http://www.mindscapehq.com/forums/thread/271601 (note the option name may be slightly different in these builds). We will also investigate whether we can detect this condition and work around it. |
|
|
I used this as a hack to get Resharper to give me a colour picker in LESS. Guess I'll have to keep poking them for LESS support! |
|
|
What colour picker support are you looking for George? We could add our own support to the backlog. Kind regards, John-Daniel |
|
|
I knew I was missing something! This is what I previously had installed (fresh Win install here) that showed a swatch: http://visualstudiogallery.msdn.microsoft.com/6ed4c78f-a23e-49ad-b5fd-369af0c2107f Ideally, something like this would be good: http://blogs.jetbrains.com/dotnet/2011/02/css-support-in-resharper-6/ And attached is a mockup of what it could look like using your own Color Picker as a base. |
|
|
I'm getting the same error when minifying, "Unable to cast object of type 'Mindscape.VisualSass.Integration.Settings.LessFileSettings' to type 'Mindscape.VisualSass.Integration.Settings.IIncludeFileSettings' ". I installed WW yesterday and uninstalled Chirpy. I have the CSS Is Less extension installed but I wouldn't expect that to cause issues. There is no CSS or minified CSS being generated. Thanks, Kevin |
|
|
Actually it does sound somewhat likely that it may be causing the issue - are you able to uninstall that extension and re-install Web Workbench and check if that fixes the mapping issue. As Ivan mentioned earlier this error only occurs if another extension remaps things in Visual Studio.
|
|
|
Thank you, had the same problem. Uninstalling & Re-Installing the mindscape tool after uninstalling the LessIsCss tool is crucial. Thanx, T.J. |
|