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"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": { },
|
||||
"aspnet50": { },
|
||||
"aspnetcore50": { }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
using System;
|
||||
using System;
|
||||
using Microsoft.AspNet.Builder;
|
||||
using Microsoft.AspNet.Diagnostics;
|
||||
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.
|
||||
var identity = (ClaimsIdentity)context.User.Identity;
|
||||
|
||||
#if NET451
|
||||
#if ASPNET501
|
||||
if (identity.GetUserName() == Environment.UserDomainName + "\\" + Environment.UserName)
|
||||
{
|
||||
identity.AddClaim(new Claim("ManageStore", "Allowed"));
|
||||
|
|
@ -137,4 +137,4 @@ namespace MusicStore
|
|||
SampleData.InitializeMusicStoreDatabaseAsync(app.ApplicationServices).Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
"run": "run server.urls=http://localhost:5003"
|
||||
},
|
||||
"frameworks": {
|
||||
"net451": { },
|
||||
"aspnet50": { },
|
||||
"aspnetcore50": { }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"Microsoft.AspNet.SignalR.Client": "2.1.1"
|
||||
},
|
||||
"frameworks": {
|
||||
"net45": {
|
||||
"aspnet50": {
|
||||
"dependencies": {
|
||||
"System.Runtime": "",
|
||||
"System.Runtime.Extensions": "",
|
||||
|
|
|
|||
Loading…
Reference in New Issue