Share via


ActivationConstraint.SolutionHasProjectBuildProperty(String, String) Method

Definition

Creates an activation constraint that is true when the solution has a loaded project with the specified build property and the property value matches the regex pattern provided.

public static Microsoft.VisualStudio.Extensibility.ActivationConstraint SolutionHasProjectBuildProperty (string property, string regexPattern);
static member SolutionHasProjectBuildProperty : string * string -> Microsoft.VisualStudio.Extensibility.ActivationConstraint
Public Shared Function SolutionHasProjectBuildProperty (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 solution has a loaded project with the specified build property and the property value matches the regex pattern provided.

Applies to