added Microsoft.AspNet.StaticFiles package to be able to serve static files for the sample

This commit is contained in:
tugberkugurlu 2014-07-04 12:04:34 +03:00
parent e396f1b451
commit b855b69e5a
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@ namespace MvcSample.Web
{
public void Configure(IBuilder app)
{
app.UseFileServer();
#if NET45
var configuration = new Configuration()
.AddJsonFile(@"App_Data\config.json")

View File

@ -14,7 +14,8 @@
"Microsoft.DataAnnotations": "1.0.0-*",
"Microsoft.Framework.ConfigurationModel": "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" },
"configurations": {