diff --git a/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs b/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs index 9e9df975e6..b6981a4b6c 100644 --- a/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs +++ b/src/Microsoft.AspNet.Mvc.ViewFeatures/DependencyInjection/MvcViewFeaturesMvcCoreBuilderExtensions.cs @@ -83,7 +83,7 @@ namespace Microsoft.Framework.DependencyInjection services.TryAddSingleton(); services.TryAdd(ServiceDescriptor.Singleton(serviceProvider => { - var options = serviceProvider.GetRequiredService>().Options; + var options = serviceProvider.GetRequiredService>().Value; return new JsonOutputFormatter(options.SerializerSettings); })); diff --git a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs index ddcbc90dc1..c5dd06394f 100644 --- a/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs +++ b/src/Microsoft.AspNet.Mvc.ViewFeatures/TempData/TempDataMvcOptionsSetup.cs @@ -13,7 +13,6 @@ namespace Microsoft.AspNet.Mvc public TempDataMvcOptionsSetup() : base(ConfigureMvc) { - Order = DefaultOrder.DefaultFrameworkSortOrder; } public static void ConfigureMvc(MvcOptions options)