ActivationConstraint.ActiveProjectBuildProperty(String, 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.
Creates an activation constraint that is true
when the selected project has the
specified build property and the property value matches the regex pattern provided.
public static Microsoft.VisualStudio.Extensibility.ActivationConstraint ActiveProjectBuildProperty (string property, string regexPattern);
static member ActiveProjectBuildProperty : string * string -> Microsoft.VisualStudio.Extensibility.ActivationConstraint
Public Shared Function ActiveProjectBuildProperty (property As String, regexPattern As String) As ActivationConstraint
Parameters
- property
- String
The solution build property.
- regexPattern
- String
The regex pattern to match.
Returns
A constraint that is true
when the selected project has the
specified build property and the property value matches the regex pattern provided.