Updated to use the new target framework in project.json

This commit is contained in:
David Fowler 2014-09-04 02:30:32 -07:00
parent f04921a26a
commit c299a13927
4 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@
"run": "run server.urls=http://localhost:5003" "run": "run server.urls=http://localhost:5003"
}, },
"frameworks": { "frameworks": {
"net451": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -1,4 +1,4 @@
using System; using System;
using Microsoft.AspNet.Builder; using Microsoft.AspNet.Builder;
using Microsoft.AspNet.Diagnostics; using Microsoft.AspNet.Diagnostics;
using Microsoft.AspNet.Routing; using Microsoft.AspNet.Routing;
@ -45,7 +45,7 @@ namespace MusicStore
//Who will get admin access? For demo sake I'm listing the currently logged on user as the application administrator. But this can be changed to suit the needs. //Who will get admin access? For demo sake I'm listing the currently logged on user as the application administrator. But this can be changed to suit the needs.
var identity = (ClaimsIdentity)context.User.Identity; var identity = (ClaimsIdentity)context.User.Identity;
#if NET451 #if ASPNET501
if (identity.GetUserName() == Environment.UserDomainName + "\\" + Environment.UserName) if (identity.GetUserName() == Environment.UserDomainName + "\\" + Environment.UserName)
{ {
identity.AddClaim(new Claim("ManageStore", "Allowed")); identity.AddClaim(new Claim("ManageStore", "Allowed"));
@ -137,4 +137,4 @@ namespace MusicStore
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait(); SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
} }
} }
} }

View File

@ -32,7 +32,7 @@
"run": "run server.urls=http://localhost:5003" "run": "run server.urls=http://localhost:5003"
}, },
"frameworks": { "frameworks": {
"net451": { }, "aspnet50": { },
"aspnetcore50": { } "aspnetcore50": { }
} }
} }

View File

@ -10,7 +10,7 @@
"Microsoft.AspNet.SignalR.Client": "2.1.1" "Microsoft.AspNet.SignalR.Client": "2.1.1"
}, },
"frameworks": { "frameworks": {
"net45": { "aspnet50": {
"dependencies": { "dependencies": {
"System.Runtime": "", "System.Runtime": "",
"System.Runtime.Extensions": "", "System.Runtime.Extensions": "",