如何从Visual Studio中排除文件编译? [英] How to exclude files from Visual Studio compile?
本文介绍了如何从Visual Studio中排除文件编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在重构项目。我有一个完整的子文件夹,已知是破碎。有没有任何声明性的方法,从临时编译暂时排除该文件夹,而我测试的重构到目前为止?
I'm in the process of refactoring a project. I've got an entire subfolder which is known to be broken. Is there any declarative way to exclude that folder from the compile temporarily while I test the refactoring thus far?
我意识到我可以删除文件夹,但我想
I realize I could delete the folder, but I'd like to do this through configuration if possible.
推荐答案
您可以将构建操作(在属性窗口中)设置为无为要排除的文件。您也可以右键点击该文件夹,然后选择从项目中排除。
You could set the Build Action (in the Properties Window) to None for the files you want excluded. You could also right-click on the folder and choose Exclude from Project.
这篇关于如何从Visual Studio中排除文件编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文