diff --git a/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs b/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs index 92a1f17388..87fc9407ad 100644 --- a/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs +++ b/src/Microsoft.AspNetCore.Routing/EndpointConstraints/IEndpointConstraint.cs @@ -46,6 +46,14 @@ namespace Microsoft.AspNetCore.Routing.EndpointConstraints Constraints = constraints; } + // Temporarily added to not break MVC build + public EndpointSelectorCandidate( + Endpoint endpoint, + IReadOnlyList constraints) + { + throw new NotSupportedException(); + } + public Endpoint Endpoint { get; } public int Score { get; }