ProjectRootElement.AddTarget(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.
Convenience method that picks a location based on a heuristic: Creates a target at the end of the project.
public:
Microsoft::Build::Construction::ProjectTargetElement ^ AddTarget(System::String ^ name);
public Microsoft.Build.Construction.ProjectTargetElement AddTarget (string name);
member this.AddTarget : string -> Microsoft.Build.Construction.ProjectTargetElement
Public Function AddTarget (name As String) As ProjectTargetElement
Parameters
- name
- String
The name of the target to be added.
Returns
The added target.
Remarks
Convenience method that picks a location based on a heuristic: Creates a target at the end of the project.