Skip to content

Commit 811641b

Browse files
Updates for ASP.NET Core 3.1
Updates for generating providers against the latest dev branch changes for ASP.NET Core 3.1.
1 parent 4f850a6 commit 811641b

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

generators/app/templates/AuthenticationExtensions.cs

+4-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ public static class <%= name %>AuthenticationExtensions
5050
/// <param name="configuration">The delegate used to configure the <%= name %> options.</param>
5151
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
5252
public static AuthenticationBuilder Add<%= name %>(
53-
[NotNull] this AuthenticationBuilder builder, [NotNull] string scheme,
53+
[NotNull] this AuthenticationBuilder builder,
54+
[NotNull] string scheme,
5455
[NotNull] Action<<%= name %>AuthenticationOptions> configuration)
5556
{
5657
return builder.Add<%= name %>(scheme, <%= name %>AuthenticationDefaults.DisplayName, configuration);
@@ -67,7 +68,8 @@ public static class <%= name %>AuthenticationExtensions
6768
/// <returns>The <see cref="AuthenticationBuilder"/>.</returns>
6869
public static AuthenticationBuilder Add<%= name %>(
6970
[NotNull] this AuthenticationBuilder builder,
70-
[NotNull] string scheme, [CanBeNull] string caption,
71+
[NotNull] string scheme,
72+
[CanBeNull] string caption,
7173
[NotNull] Action<<%= name %>AuthenticationOptions> configuration)
7274
{
7375
return builder.AddOAuth<<%= name %>AuthenticationOptions, <%= name %>AuthenticationHandler>(scheme, caption, configuration);

generators/app/templates/Project.csproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.0</TargetFramework>
4+
<TargetFramework>netcoreapp3.1</TargetFramework>
55
</PropertyGroup>
66

77
<PropertyGroup>
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<FrameworkReference Include="Microsoft.AspNetCore.App" />
15-
<PackageReference Include="JetBrains.Annotations" Version="$(JetBrainsVersion)" PrivateAssets="All" />
15+
<PackageReference Include="JetBrains.Annotations" PrivateAssets="All" />
1616
</ItemGroup>
1717

1818
</Project>

0 commit comments

Comments
 (0)