This extension allows to exclude from build or include in build multiple C/C++/C#/VB files and directories with one click.
- Select directories and/or files you'd like to exclude or include
- Right-click the selection or go to menu Tools
- Choose Exclude from Build or Include in Build
Files are excluded/included based on file extension:
- .c, .cc, .cpp, .cxx, .c++, .m, .mm
- Exclude sets Excluded from Build file property to Yes/True
- Include sets Excluded from Build file property to No/False
- .cs, .vb
- Exclude sets Build Action file property to None
- Include sets Build Action file property to Compile
- .xaml
- Exclude sets Build Action file property to None
- Include sets Build Action file property to:
- ApplicationDefinition if the file defines
<Application>
- Page otherwise
- ApplicationDefinition if the file defines
For C/C++ it is possible to affect only the Active project configuration (default) or All project configurations. Choose one of the options in menu Tools -> More. The behavior of the basic buttons can be changed in Tools -> Options -> Exclude from Build.
You can download this extension from Visual Studio Marketplace or GitHub.
Visual Studio 2013, 2015, 2017 and 2019 - version 1.6
Visual Studio 2022 - version 1.10 and newer