Share via


ProvideMSBuildTargetsAttribute(String, String) Constructor

Definition

Creates a new ProvideMSBuildTargets attribute to register a targets file to the list of the MSBuild safe imports.

public:
 ProvideMSBuildTargetsAttribute(System::String ^ targetsLabel, System::String ^ targetsPath);
public:
 ProvideMSBuildTargetsAttribute(Platform::String ^ targetsLabel, Platform::String ^ targetsPath);
 ProvideMSBuildTargetsAttribute(std::wstring const & targetsLabel, std::wstring const & targetsPath);
public ProvideMSBuildTargetsAttribute (string targetsLabel, string targetsPath);
new Microsoft.VisualStudio.Shell.ProvideMSBuildTargetsAttribute : string * string -> Microsoft.VisualStudio.Shell.ProvideMSBuildTargetsAttribute
Public Sub New (targetsLabel As String, targetsPath As String)

Parameters

targetsLabel
String

Label to identify the targets.

targetsPath
String

Full path to the targets file.

Exceptions

This exception is thrown if targetsLabel or targetsPath are null or empty.

Applies to