ProjectExtensions Element (MSBuild)

Switch View :
ScriptFree
.NET Framework 4
ProjectExtensions Element (MSBuild)

Allows MSBuild project files to contain non-MSBuild information. Anything inside of a ProjectExtensions element will be ignored by MSBuild.


  
<ProjectExtensions>
    Non-MSBuild information to include in file.
</ProjectExtensions>
Attributes and Elements

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

Attributes

None

Child Elements

None

Parent Elements

Element

Description

Project

Required root element of an MSBuild project file.

Remarks

Only one ProjectExtensions element may be used in an MSBuild project.

Example

The following code example shows information from the integrated development environment being stored in a ProjectExtensions element.

<ProjectExtensions>
    <VSIDE>
        <External>
            <!--
            Raw XML passed to the IDE by an external source
            -->
        </External>
    </VSIDE>
</ProjectExtensions>
See Also

Concepts

Other Resources

Community Content

Chuck England - MSFT
Not Recommended
It is really not recommended to use this element. At some point this will probably go away. If you need to store data in the project file, even XML data, put it in a property.