diff --git a/build/dependencies.props b/build/dependencies.props index ffac79d91b..d38c6123c4 100644 --- a/build/dependencies.props +++ b/build/dependencies.props @@ -48,8 +48,8 @@ 3.0.0-alpha1-10223 3.0.0-alpha1-10223 3.0.0-alpha1-10223 - 3.0.0-alpha1-10223 - 3.0.0-alpha1-10223 + 3.0.0-a-alpha1-remove-useglobalrouting-16859 + 3.0.0-a-alpha1-remove-useglobalrouting-16859 3.0.0-alpha1-10223 3.0.0-alpha1-10223 3.0.0-alpha1-10223 diff --git a/src/Microsoft.AspNetCore.Mvc.Core/Builder/MvcApplicationBuilderExtensions.cs b/src/Microsoft.AspNetCore.Mvc.Core/Builder/MvcApplicationBuilderExtensions.cs index 08baf62c2e..c54fcb350a 100644 --- a/src/Microsoft.AspNetCore.Mvc.Core/Builder/MvcApplicationBuilderExtensions.cs +++ b/src/Microsoft.AspNetCore.Mvc.Core/Builder/MvcApplicationBuilderExtensions.cs @@ -4,6 +4,7 @@ using System; using System.Collections.Generic; using System.Linq; +using Microsoft.AspNetCore.Internal; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.Mvc.Core; using Microsoft.AspNetCore.Mvc.Internal; @@ -125,7 +126,7 @@ namespace Microsoft.AspNetCore.Builder { // Matching middleware has not been registered yet // For back-compat register middleware so an endpoint is matched and then immediately used - app.UseGlobalRouting(); + app.UseEndpointRouting(); } return app.UseEndpoint();