Skip to content

Commit 955e7a6

Browse files
committed
Fixes #6 - brings master up to beta 5. Package publish soon.
1 parent 6314066 commit 955e7a6

File tree

11 files changed

+7974
-8956
lines changed

11 files changed

+7974
-8956
lines changed

global.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
2-
"projects": [ "src", "test" ],
3-
"sdk": {
4-
"version": "1.0.0-beta4"
5-
}
6-
}
1+
{
2+
"projects": [ "src", "test" ],
3+
"sdk": {
4+
"version": "1.0.0-beta5"
5+
}
6+
}

samples/MvcSample/Startup.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Microsoft.AspNet.Builder;
22
using Microsoft.AspNet.Diagnostics;
33
using Microsoft.AspNet.Hosting;
4-
using Microsoft.Framework.ConfigurationModel;
4+
using Microsoft.Framework.Configuration;
55
using Microsoft.Framework.DependencyInjection;
66
using Microsoft.Framework.Logging;
77
using Serilog;
@@ -12,16 +12,17 @@ public class Startup
1212
{
1313
public Startup(IHostingEnvironment env)
1414
{
15-
Configuration = new Configuration()
15+
Configuration = new ConfigurationBuilder()
1616
.AddJsonFile("config.json")
17-
.AddEnvironmentVariables();
17+
.AddEnvironmentVariables()
18+
.Build();
1819
}
1920

2021
public IConfiguration Configuration { get; set; }
2122

2223
public void ConfigureServices(IServiceCollection services)
2324
{
24-
services.Configure<AppSettings>(Configuration.GetSubKey("AppSettings"));
25+
services.Configure<AppSettings>(Configuration.GetConfigurationSection("AppSettings"));
2526

2627
services.AddMvc();
2728
}

samples/MvcSample/project.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@
33
"version": "1.0.0-*",
44

55
"dependencies": {
6-
"Microsoft.AspNet.Diagnostics": "1.0.0-beta5-13065",
7-
"Microsoft.AspNet.Mvc": "6.0.0-beta5-13890",
8-
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta5-13890",
9-
"Microsoft.AspNet.Server.IIS": "1.0.0-beta5-11775",
10-
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta5-12160",
11-
"Microsoft.AspNet.StaticFiles": "1.0.0-beta5-11935",
12-
"Microsoft.AspNet.Tooling.Razor": "1.0.0-beta5-13375",
13-
"Microsoft.Framework.ConfigurationModel.Json": "1.0.0-beta5-11337",
14-
"Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta5-12298",
15-
"Microsoft.Framework.Logging": "1.0.0-beta5-11361",
16-
"Microsoft.Framework.Logging.Console": "1.0.0-beta5-11361",
6+
"Microsoft.AspNet.Diagnostics": "1.0.0-beta5",
7+
"Microsoft.AspNet.Mvc": "6.0.0-beta5",
8+
"Microsoft.AspNet.Mvc.TagHelpers": "6.0.0-beta5",
9+
"Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
10+
"Microsoft.AspNet.Server.WebListener": "1.0.0-beta5",
11+
"Microsoft.AspNet.StaticFiles": "1.0.0-beta5",
12+
"Microsoft.AspNet.Tooling.Razor": "1.0.0-beta5",
13+
"Microsoft.Framework.Configuration.Json": "1.0.0-beta5",
14+
"Microsoft.Framework.CodeGenerators.Mvc": "1.0.0-beta5",
15+
"Microsoft.Framework.Logging": "1.0.0-beta5",
16+
"Microsoft.Framework.Logging.Console": "1.0.0-beta5",
1717
"Serilog.Framework.Logging": "1.0.0-*"
1818
},
1919

0 commit comments

Comments
 (0)