Skip to content

Commit 6f91c4a

Browse files
Update for .NET 5
Use $(DefaultNetCoreTargetFramework) instead of a literal target framework. Add operator to fix compiler warning/error when nullable is enabled.
1 parent 9e3dbd8 commit 6f91c4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/app/templates/AuthenticationHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected override async Task<AuthenticationTicket> CreateTicketAsync(
7676
context.RunClaimActions();
7777

7878
await Options.Events.CreatingTicket(context);
79-
return new AuthenticationTicket(context.Principal, context.Properties, Scheme.Name);
79+
return new AuthenticationTicket(context.Principal!, context.Properties, Scheme.Name);
8080
}
8181
}
8282
}

generators/app/templates/Project.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFrameworks>$(DefaultNetCoreTargetFramework)</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup>

0 commit comments

Comments
 (0)