diff --git a/samples/IdentitySample.Mvc/Startup.cs b/samples/IdentitySample.Mvc/Startup.cs index 7abdd18f89..1b207d9970 100644 --- a/samples/IdentitySample.Mvc/Startup.cs +++ b/samples/IdentitySample.Mvc/Startup.cs @@ -1,7 +1,5 @@ using IdentitySample.Models; using Microsoft.AspNet.Builder; -using Microsoft.AspNet.Diagnostics; -using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.Data.Entity; using Microsoft.Framework.Configuration; @@ -23,7 +21,8 @@ namespace IdentitySamples * Below code demonstrates usage of multiple configuration sources. For instance a setting say 'setting1' is found in both the registered sources, * then the later source will win. By this way a Local config can be overridden by a different setting while deployed remotely. */ - var builder = new ConfigurationBuilder(env.ApplicationBasePath) + var builder = new ConfigurationBuilder() + .SetBasePath(env.ApplicationBasePath) .AddJsonFile("LocalConfig.json") .AddEnvironmentVariables(); //All environment variables in the process's context flow in as configuration values.