#110 Fix sample to publish the wwwroot dir as content.

This commit is contained in:
Chris R 2016-02-08 13:39:47 -08:00
parent fc236b07e2
commit 44850090e3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,4 @@
using System;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
@ -12,8 +13,10 @@ namespace StaticFilesSample
services.AddDirectoryBrowser();
}
public void Configure(IApplicationBuilder app, ILoggerFactory factory)
public void Configure(IApplicationBuilder app, ILoggerFactory factory, IHostingEnvironment host)
{
Console.WriteLine("webroot: " + host.WebRootPath);
// Displays all log levels
factory.AddConsole(LogLevel.Debug);

View File

@ -16,4 +16,7 @@
"dnx451": { },
"dnxcore50": { }
},
"content": [
"wwwroot/**/*"
]
}