ProvideMSBuildTargetsAttribute(String, String) 构造函数

定义

已过时。 不要 use.Initializes 类的新实例 ProvideMSBuildTargetsAttribute ,将目标文件注册到 MSBuild 安全导入的列表。

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)

参数

targetsLabel
String

用于标识目标的标签。

targetsPath
String

目标文件的完整路径。

例外

如果 targetsLabel 或为 targetsPath null 或为空,则会引发此异常。

适用于