From db961049851be53e9137c485fd4589f609ee4af9 Mon Sep 17 00:00:00 2001 From: riande Date: Tue, 23 Dec 2014 15:37:35 -0800 Subject: [PATCH] removed App_data per [Mvc] Remove App_Data from MvcSample.Web Startup (#1716) --- samples/MvcSample.Web/Startup.cs | 6 +++--- samples/MvcSample.Web/{App_Data/Config.json => config.json} | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename samples/MvcSample.Web/{App_Data/Config.json => config.json} (100%) diff --git a/samples/MvcSample.Web/Startup.cs b/samples/MvcSample.Web/Startup.cs index 96d203d451..20098d157a 100644 --- a/samples/MvcSample.Web/Startup.cs +++ b/samples/MvcSample.Web/Startup.cs @@ -25,10 +25,10 @@ namespace MvcSample.Web { app.UseFileServer(); #if ASPNET50 - // We use Path.Combine here so that it works on platforms other than Windows as well. + // Set up configuration sources. var configuration = new Configuration() - .AddJsonFile(Path.Combine("App_Data", "config.json")) - .AddEnvironmentVariables(); + .AddJsonFile("config.json") + .AddEnvironmentVariables(); string diSystem; if (configuration.TryGet("DependencyInjection", out diSystem) && diff --git a/samples/MvcSample.Web/App_Data/Config.json b/samples/MvcSample.Web/config.json similarity index 100% rename from samples/MvcSample.Web/App_Data/Config.json rename to samples/MvcSample.Web/config.json