ProvideMSBuildTargetsAttribute(String, String) 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
已过时。 不要 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 或为空,则会引发此异常。