removed App_data per [Mvc] Remove App_Data from MvcSample.Web Startup (#1716)
This commit is contained in:
parent
a818240d8a
commit
db96104985
|
|
@ -25,10 +25,10 @@ namespace MvcSample.Web
|
||||||
{
|
{
|
||||||
app.UseFileServer();
|
app.UseFileServer();
|
||||||
#if ASPNET50
|
#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()
|
var configuration = new Configuration()
|
||||||
.AddJsonFile(Path.Combine("App_Data", "config.json"))
|
.AddJsonFile("config.json")
|
||||||
.AddEnvironmentVariables();
|
.AddEnvironmentVariables();
|
||||||
string diSystem;
|
string diSystem;
|
||||||
|
|
||||||
if (configuration.TryGet("DependencyInjection", out diSystem) &&
|
if (configuration.TryGet("DependencyInjection", out diSystem) &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue