使用Web发布时不要复制SASS/LESS文件 [英] Do not copy SASS / LESS file when using Web Publish

查看:39
本文介绍了使用Web发布时不要复制SASS/LESS文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在"Web发布"设置中通过文件系统发布Web应用程序(在我的情况下为MVC)时,大多数 *.scss & *.less 文件也将得到部署.

When publishing a Web Application (MVC in my case) via File Systemin Web Publish setting, most of the *.scss & *.less files get deployed as well.

如何配置Visual Studio项目,使其不部署这些文件?

How do I configure a Visual Studio project so that it does not deploy these files?

推荐答案

我认为将构建操作"设置为无",将复制到输出目录"设置为从不"应该起作用.您可以在文件的属性窗口中进行操作.在解决方案资源管理器中右键单击文件,然后单击属性

I believe setting "Build action" to "None" and "Copy to output directory" to "Never" should work. You can do it in property window of the file. Right click the file in solution explorer and click properties

这篇关于使用Web发布时不要复制SASS/LESS文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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