如何从VS2017社区中的构建中排除某些文件或文件夹 [英] How to exclude some files or folders from the build in VS2017 Community

查看:903
本文介绍了如何从VS2017社区中的构建中排除某些文件或文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在构建一个C程序,我真的需要Visual Studio来避免制作大量的makefile。问题是,我没有编译所有的代码,但在最新的Visual Studio上所有旧的方法从构建中排除某些东西(我已经尝试了所有可以在互联网上找到的
)似乎不行。

Hi guys, I'm building a C program and I really need Visual Studio to avoid making a massive makefile. Problem is, I don't have to compile all of the code, but on the newest Visual Studio all the old ways to exclude something from the build (I've tried everything I could find on the internet) seem to not work.

这很简单但却给我带来了太多麻烦,请你帮我找一下如何解决这个问题?

It's something so simple yet it's causing me so much trouble, can you please help me find out how to solve this?

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

可以您是否可以分享您尝试排除文件的方式?

Could you please share the ways that you have tried to exclude file?

在Visual Studio 2017中,您可以右键单击解决方案资源管理器中的文件 - >选择从项目中排除。

In visual studio 2017, you can right click on the files in solution explorer->select Exclude from the project.

在此之后,您可以点击显示所有文件再次显示。

After this, you can click show all file to show it again.

祝你好运,

Joyce

 


这篇关于如何从VS2017社区中的构建中排除某些文件或文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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