From 306c399310cf8817bbe56456d8c1184a00a67cd3 Mon Sep 17 00:00:00 2001 From: Kiran Challa Date: Tue, 7 Aug 2018 11:07:57 -0700 Subject: [PATCH] Using Routing feature branch versions --- build/dependencies.props | 4 ++-- .../Builder/MvcApplicationBuilderExtensions.cs | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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();