ProjectRootElement.CreateTargetElement(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a target. Caller must add it to the location of choice in this project.
public:
Microsoft::Build::Construction::ProjectTargetElement ^ CreateTargetElement(System::String ^ name);
public Microsoft.Build.Construction.ProjectTargetElement CreateTargetElement (string name);
member this.CreateTargetElement : string -> Microsoft.Build.Construction.ProjectTargetElement
Public Function CreateTargetElement (name As String) As ProjectTargetElement
Parameters
- name
- String
The name of the target.
Returns
The target.
Remarks
Caller must add the target to the location of choice in this project.