Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 2.5 KB

README.md

File metadata and controls

42 lines (31 loc) · 2.5 KB

Exclude from Build

Extension for Visual Studio

VS Marketplace Installs Rating License Donate

This extension allows to exclude from build or include in build multiple C/C++/C#/VB files and directories with one click.

  1. Select directories and/or files you'd like to exclude or include
  2. Right-click the selection or go to menu Tools
  3. Choose Exclude from Build or Include in Build

Exclude From 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

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.

Download

You can download this extension from Visual Studio Marketplace or GitHub.

Supported Versions

Visual Studio 2013, 2015, 2017 and 2019 - version 1.6

Visual Studio 2022 - version 1.10 and newer