#110 Fix sample to publish the wwwroot dir as content.
This commit is contained in:
parent
fc236b07e2
commit
44850090e3
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -16,4 +16,7 @@
|
|||
"dnx451": { },
|
||||
"dnxcore50": { }
|
||||
},
|
||||
"content": [
|
||||
"wwwroot/**/*"
|
||||
]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue