ProjectExtensionsElement Class
Represents the ProjectExtensions Element (MSBuild) in an MSBuild project. Project extensions can contain arbitrary XML content.
MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.
Assembly: Microsoft.Build (in Microsoft.Build.dll)
Microsoft.Build.Construction::ProjectElement
Microsoft.Build.Construction::ProjectExtensionsElement
| Name | Description | |
|---|---|---|
![]() | AllParents | All parent elements of this element, going up to the ProjectRootElement. None if this is a ProjectRootElement. None if this has not been attached to a parent yet. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | Condition | Gets a nonexistent condition, which is implicitly true. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Overrides ProjectElement::Condition.) |
![]() | ConditionLocation | This does not allow conditions, so it should not be called. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Overrides ProjectElement::ConditionLocation.) |
![]() | ContainingProject | ProjectRootElement (possibly imported) that contains this Xml. Cannot be null. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | Content | Gets or sets the arbitrary XML content of this project extension. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. |
![]() | Item[String^] | Gets or sets the content of the first sub-element with the given name parameter. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0. |
![]() | Label | Gets or sets the Label value. Returns empty string if it is not present. Removes the attribute if the value to set is empty. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | LabelLocation | Location of the "Label" attribute on this element, if any. If there is no such attribute, returns null; MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | Location | Location of the corresponding Xml element. May not be correct if file is not saved, or file has been edited since it was last saved. In the case of an unsaved edit, the location only contains the path to the file that the element originates from. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | NextSibling | Next sibling element. May be null. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | Parent | Null if this is a ProjectRootElement. Null if this has not been attached to a parent yet. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
![]() | PreviousSibling | Previous sibling element. May be null. MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.(Inherited from ProjectElement.) |
| Name | Description | |
|---|---|---|
![]() | Clone() | (Inherited from ProjectElement.) |
![]() | Clone(ProjectRootElement^) | (Inherited from ProjectElement.) |
![]() | CopyFrom(ProjectElement^) | (Overrides ProjectElement::CopyFrom(ProjectElement^).) |
![]() | CreateNewInstance(ProjectRootElement^) | |
![]() | Equals(Object^) | (Inherited from Object.) |
![]() | Finalize() | (Inherited from Object.) |
![]() | GetHashCode() | (Inherited from Object.) |
![]() | GetType() | (Inherited from Object.) |
![]() | MemberwiseClone() | (Inherited from Object.) |
![]() | ToString() | (Inherited from Object.) |
The ProjectExtensions element is deprecated and provided only for backward compatibility. Use a ProjectPropertyElement instead.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


