Updated to use the new target framework in project.json
This commit is contained in:
parent
f04921a26a
commit
c299a13927
|
|
@ -22,7 +22,7 @@
|
||||||
"run": "run server.urls=http://localhost:5003"
|
"run": "run server.urls=http://localhost:5003"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": { },
|
"aspnet50": { },
|
||||||
"aspnetcore50": { }
|
"aspnetcore50": { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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"));
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@
|
||||||
"run": "run server.urls=http://localhost:5003"
|
"run": "run server.urls=http://localhost:5003"
|
||||||
},
|
},
|
||||||
"frameworks": {
|
"frameworks": {
|
||||||
"net451": { },
|
"aspnet50": { },
|
||||||
"aspnetcore50": { }
|
"aspnetcore50": { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -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": "",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue