VS 2017和LESS编译的方向 [英] VS 2017 and the direction of LESS compiling

查看:358
本文介绍了VS 2017和LESS编译的方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自从VS 2013发布以来,我一直在使用它.这背后的主要原因是因为VS 2013是支持功能齐全的Web Essentials附加组件的最后一个版本.对于VS 2015,Mads Kristensen决定对功能进行拆分,并提出 一个名为Web Compiler的新插件中的LESS编译功能.

该插件不如2013版,因为您必须手动将每个LESS文件添加到配置文件中才能进行编译.预览面板不见了.需要运行任务运行器来编译代码.一切都感觉像是降级了.好像 仅仅为了赶上最新的基于JavaScript的任务运行器/程序包管理器的潮流而变得困难.许多年来,人们一直在抱怨它,但它并没有改变.

令我惊讶的是,除非替换了该插件,否则为什么功能会被剥夺,我想知道Visual Studio中的LESS支持是否有新的方向.我想使用VS的较新版本,但我真的很想 LESS只是在保存时进行编译,而无需进行任何将每个少的文件添加到配置文件的工作. VS 2013刚刚工作.另一方面,VS 2015 ...大量的工作只是为了让您所有的LESS编译.

解决方案

嗨DuelingCats,

感谢您在MSDN论坛中发帖.

对于您的问题,我进行了一项研究,以检查VS 2017是否有有关LESS编译支持的附加组件,但是没有找到合适的附加组件,因此我尝试进行测试以查看Web编译器是否可以适用VS 2017 RC版本.

在我的Vmas上,同时安装了VS 2015和VS 2017,Web Compiler只能检测到VS Enterprise 2015,VS 2017 RC版本未显示,请参阅:

Web编译器是VS的第三方插件,如果对使用此功能确实很重要,则可以撰写有关它的评论,以要求可以与VS 2017 RC兼容:

> https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler

由于当前VS 2017 RC版本刚刚发布,因此供Beta使用. VS 2017 RTM尚未发布,请您耐心等待生产版本发布,以检查VS 2017 RTM是否支持LESS.或其他一些发展 开发可以在其中安装的Web编译器.

谢谢您的理解.

最好的问候,


I have been using VS 2013 since its release. The major reason behind this is because VS 2013 was the last version that supported the web essentials addon that was fully featured. For VS 2015, Mads Kristensen decided to split up the functionality and put the LESS compiling functionality in a new addon titled Web Compiler.

This addon, is inferior to the 2013 version as you have to manually add every LESS file to a configuration file so that will be compiled. The preview panel is gone. Task runner needs to be ran to compile the code. It all feels like a downgrade. Its as if it was made difficult just to jump on the bandwagon of the latest javascript based task runner/package manager. Many people have been complaining about it for over a year, yet it hasn't changed.

I am kind of surprised why functionality would be stripped away unless there was a replacement for this addon and I am wondering if there is a new direction for LESS support in visual studio. I would like to move to newer versions of VS, but I'd really like LESS just to compile on save without any work of adding every single less file to a configuration file. VS 2013 just worked. VS 2015 on the other hand...lots of grunt work just to have all your LESS compiling.

解决方案

Hi DuelingCats,

Thank you for posting in MSDN forum.

For your question, I did a research to check if there is any addon about the LESS compiling support on VS 2017, but didn't find an appropriate one, so I try to do a test to see the Web Compiler could apply to the VS 2017 RC version.

On my Vmas, both installed VS 2015 and VS 2017 RC, the Web Compiler could only detect the VS Enterprise 2015, the VS 2017 RC version doesn't show up, please see: 

The Web Compiler is a third-party addon to VS, if it is really important for you to use this function, you may write a review about it to ask for requirement could be compatible with VS 2017 RC:

https://marketplace.visualstudio.com/items?itemName=MadsKristensen.WebCompiler

Since currently the VS 2017 RC version is just released, it's for Beta using. the VS 2017 RTM hasn't come out yet, would you mind wait patiently till the Production release ships, to check if the LESS support is on VS 2017 RTM. Or some other develop will develop the Web Compiler which could install in it.

Thank you for your understanding.

Best Regards,


这篇关于VS 2017和LESS编译的方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆