diff --git a/src/Microsoft.AspNet.Routing/RoutingServices.cs b/src/Microsoft.AspNet.Routing/RoutingServices.cs index 12d5fae9b8..f15583d0f2 100644 --- a/src/Microsoft.AspNet.Routing/RoutingServices.cs +++ b/src/Microsoft.AspNet.Routing/RoutingServices.cs @@ -9,6 +9,7 @@ namespace Microsoft.Framework.DependencyInjection { public static IServiceCollection AddRouting(this IServiceCollection services) { + services.AddOptions(); services.TryAdd(ServiceDescriptor.Transient()); return services; }