Share via


Project.SetProjectExtensions Method

Sets the ProjectExtensions element of the project with the specified element name and 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.

Namespace:  Microsoft.Build.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.dll)

Syntax

'Declaration
Public Sub SetProjectExtensions ( _
    id As String, _
    content As String _
)
public void SetProjectExtensions(
    string id,
    string content
)
public:
void SetProjectExtensions(
    String^ id, 
    String^ content
)
member SetProjectExtensions : 
        id:string * 
        content:string -> unit
public function SetProjectExtensions(
    id : String, 
    content : String
)

Parameters

  • id
    Type: System.String

    The name of the XML element to create as a child of the ProjectExtensions element.

  • content
    Type: System.String

    The text value of the created XML element.

.NET Framework Security

See Also

Reference

Project Class

Microsoft.Build.BuildEngine Namespace