ASP.NET MVC3:发布不包括我的 CSS (.less) 文件
最初我有一个名为 Site.less.css
的 css .less 文件,以便智能类型处于活动状态。效果很好。
我最近需要使用 @import "Site.less";
功能。不幸的是,这最终不适用于 .css
,因为这会将其视为 CSS 文件,并且不会传递 .less 参数。
但是,由于名称为 Site.less
,发布(到 IIS)功能不包含此文件。我认为这与无法识别的文件类型有关?它包含在我的解决方案资源管理器中,因此应该复制它!
如何让它复制并发布? (我可以手动完成,但不必每次都这样做)
Originally I had my css .less file named Site.less.css
so that intelligent type is active. Which worked fine.
I've recently needed to use the @import "Site.less";
ability. And unfortunately this doesn't work with .css
on the end, because that would treat it as a CSS file, and not pass the .less parameters.
However, with the name Site.less
, the publish (to IIS) feature is not including this file. I assume this is to do with an unrecognised file type? It is included in my solution explorer, and so should be copying it!
How do I get it to copy with publish? ( I can do it manually but shouldn't have to do this every time)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“.less”文件属性是否设置为“内容”?
Are the ".less" file properties set to "content"?