Changed DNX451 references to NET451

This commit is contained in:
Kiran Challa 2016-04-08 15:04:49 -07:00
parent 04a4772fe5
commit 330200874d
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ namespace Microsoft.AspNetCore.Antiforgery.Internal
identity.AddClaim(new Claim(ClaimTypes.Email, "someone@antifrogery.com"));
identity.AddClaim(new Claim(ClaimTypes.GivenName, "some"));
identity.AddClaim(new Claim(ClaimTypes.Surname, "one"));
#if DNX451
#if NET451
// CoreCLR doesn't support an 'empty' name
identity.AddClaim(new Claim(ClaimTypes.NameIdentifier, string.Empty));
#endif