Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Obsolete. Do not use.
Initializes a new instance of the ProvideMSBuildTargetsAttribute class to register a targets file to the list of the MSBuild safe imports.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
targetsLabel As String, _
targetsPath As String _
)
public ProvideMSBuildTargetsAttribute(
string targetsLabel,
string targetsPath
)
public:
ProvideMSBuildTargetsAttribute(
String^ targetsLabel,
String^ targetsPath
)
new :
targetsLabel:string *
targetsPath:string -> ProvideMSBuildTargetsAttribute
public function ProvideMSBuildTargetsAttribute(
targetsLabel : String,
targetsPath : String
)
Parameters
targetsLabel
Type: StringLabel to identify the targets.
targetsPath
Type: StringFull path to the targets file.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | This exception is thrown if targetsLabel or targetsPath are null or empty. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.