Share via


Include element

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The Include element specifies a file that can be located on the supplied include path for insertion into the current file. All symbols and types defined will become part of the compiled result.

Syntax

<Include href="stdidcmd.h" />

Attributes and elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
href Required. The path to the header file:

href="stdidcmd.h"
Condition Optional. See Conditional Attributes.

Child elements

Element Description
None. None.

Parent elements

Element Description
CommandTable element Defines all of the elements that represent commands — that is, menu items, menus, toolbars, and combo boxes — that a VSPackage provides to the IDE.

Example

<Include href="PackagePlacements.vsct"/>

See also