added Microsoft.AspNet.StaticFiles package to be able to serve static files for the sample
This commit is contained in:
parent
e396f1b451
commit
b855b69e5a
|
|
@ -18,6 +18,7 @@ namespace MvcSample.Web
|
||||||
{
|
{
|
||||||
public void Configure(IBuilder app)
|
public void Configure(IBuilder app)
|
||||||
{
|
{
|
||||||
|
app.UseFileServer();
|
||||||
#if NET45
|
#if NET45
|
||||||
var configuration = new Configuration()
|
var configuration = new Configuration()
|
||||||
.AddJsonFile(@"App_Data\config.json")
|
.AddJsonFile(@"App_Data\config.json")
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,8 @@
|
||||||
"Microsoft.DataAnnotations": "1.0.0-*",
|
"Microsoft.DataAnnotations": "1.0.0-*",
|
||||||
"Microsoft.Framework.ConfigurationModel": "1.0.0-*",
|
"Microsoft.Framework.ConfigurationModel": "1.0.0-*",
|
||||||
"Microsoft.Framework.DependencyInjection": "1.0.0-*",
|
"Microsoft.Framework.DependencyInjection": "1.0.0-*",
|
||||||
"Microsoft.Framework.OptionsModel": "1.0.0-*"
|
"Microsoft.Framework.OptionsModel": "1.0.0-*",
|
||||||
|
"Microsoft.AspNet.StaticFiles": "1.0.0-*"
|
||||||
},
|
},
|
||||||
"commands": { "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" },
|
"commands": { "web": "Microsoft.AspNet.Hosting server=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001" },
|
||||||
"configurations": {
|
"configurations": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue