Skip to content

Commit ed1f87b

Browse files
committed
Updated to .NET 9, but has errors
1 parent 2b1ee35 commit ed1f87b

File tree

21 files changed

+147
-147
lines changed

21 files changed

+147
-147
lines changed

AuthPermissions.AspNetCore/AuthPermissions.AspNetCore.csproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="8.0.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="8.0.0" />
12-
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="7.5.1" />
10+
<PackageReference Include="Microsoft.AspNetCore.Authentication.OpenIdConnect" Version="9.0.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Authorization" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.IdentityModel.JsonWebTokens" Version="8.2.1" />
1313
<PackageReference Include="Net.DistributedFileStoreCache" Version="2.0.0" />
14-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="8.0.0" />
15-
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.1.2" />
14+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="9.0.0" />
15+
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.2.1" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

AuthPermissions.AspNetCore/ShardingServices/GetSetShardingEntriesFileStoreCache.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ private IStatusGeneric CheckShardingEntryChangeIsValid(ShardingChanges typeOfCha
478478
$"Successfully {typeOfChange} the {changedInfo.Name} sharding entry.");
479479

480480
//Check Names: not null or empty
481-
if (changedInfo.Name.IsNullOrEmpty())
481+
if (string.IsNullOrEmpty(changedInfo.Name))
482482
return status.AddErrorString("NameNullOrEmpty".ClassLocalizeKey(this, true),
483483
$"The {nameof(ShardingEntry.Name)} is null or empty, which isn't allowed.");
484484

AuthPermissions.AspNetCore/ShardingServices/ShardingOnlyTenantAddDto.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,13 @@ public void FillListOfHierarchicalTenants(IAuthTenantAdminService tenantAdminSer
113113
/// <exception cref="AuthPermissionsBadDataException"></exception>
114114
public void ValidateProperties()
115115
{
116-
if (TenantName.IsNullOrEmpty())
116+
if (string.IsNullOrEmpty(TenantName))
117117
throw new AuthPermissionsBadDataException("Should not be null or empty", nameof(TenantName));
118118

119-
if (ConnectionStringName.IsNullOrEmpty())
119+
if (string.IsNullOrEmpty(ConnectionStringName))
120120
throw new AuthPermissionsBadDataException("Should not be null or empty", nameof(ConnectionStringName));
121121

122-
if (DbProviderShortName.IsNullOrEmpty())
122+
if (string.IsNullOrEmpty(DbProviderShortName))
123123
throw new AuthPermissionsBadDataException("Should not be null or empty", nameof(DbProviderShortName));
124124
}
125125

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="EntityFrameworkCore.Exceptions.PostgreSQL" Version="8.1.2" />
11-
<PackageReference Include="EntityFrameworkCore.Exceptions.Sqlite" Version="8.1.2" />
12-
<PackageReference Include="EntityFrameworkCore.Exceptions.SqlServer" Version="8.0.0.2" />
10+
<PackageReference Include="EntityFrameworkCore.Exceptions.PostgreSQL" Version="8.1.3" />
11+
<PackageReference Include="EntityFrameworkCore.Exceptions.Sqlite" Version="8.1.3" />
12+
<PackageReference Include="EntityFrameworkCore.Exceptions.SqlServer" Version="8.1.3" />
1313
<PackageReference Include="GenericServices.StatusGeneric" Version="1.2.0" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2">
14+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
20-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
20+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
2121
<PackageReference Include="Net.RunMethodsSequentially" Version="2.0.1" />
22-
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="8.0.0" />
23-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="8.0.0" />
22+
<PackageReference Include="Microsoft.Extensions.Localization.Abstractions" Version="9.0.0" />
23+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="9.0.0" />
2424
</ItemGroup>
2525

2626
</Project>

AuthPermissions.PostgreSql/AuthPermissions.PostgreSql.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
12-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2">
11+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
1313
<PrivateAssets>all</PrivateAssets>
1414
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1515
</PackageReference>
16-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
16+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

AuthPermissions.SqlServer/AuthPermissions.SqlServer.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>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
</PropertyGroup>
77

AuthPermissions.SupportCode/AuthPermissions.SupportCode.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="DistributedLock" Version="2.4.0" />
10+
<PackageReference Include="DistributedLock" Version="2.5.0" />
1111
<PackageReference Include="Microsoft.Graph" Version="4.54.0" />
1212
<PackageReference Include="Net.DistributedFileStoreCache" Version="2.0.0" />
1313
</ItemGroup>

AuthPermissions/AuthPermissions.csproj

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

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<GenerateDocumentationFile>true</GenerateDocumentationFile>
77
</PropertyGroup>
88

99
<ItemGroup>
1010
<PackageReference Include="GenericServices.StatusGeneric" Version="1.2.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
12-
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="8.0.2" />
13-
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.2" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="8.0.2" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.2" />
16-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
17-
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
18-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.2">
11+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.Data.Sqlite.Core" Version="9.0.0" />
13+
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="9.0.0" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="9.0.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="9.0.0" />
16+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
17+
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.1" />
18+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
1919
<PrivateAssets>all</PrivateAssets>
2020
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2121
</PackageReference>
22-
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" />
22+
<PackageReference Include="Microsoft.Extensions.Hosting" Version="9.0.0" />
2323
<PackageReference Include="Net.RunMethodsSequentially" Version="2.0.1" />
24-
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="8.0.0" />
24+
<PackageReference Include="Net.LocalizeMessagesAndErrors" Version="9.0.0" />
2525
</ItemGroup>
2626

2727

Example1.RazorPages.IndividualAccounts/Example1.RazorPages.IndividualAccounts.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
<UserSecretsId>aspnet-Example1.RazorPages.IndividualAccounts-9BFCF434-1CBC-460C-98B7-CBCEDC0204D8</UserSecretsId>
66
<CopyRefAssembliesToPublishDirectory>false</CopyRefAssembliesToPublishDirectory>
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.0" />
11-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
12-
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.0" />
13-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0" />
14-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.2">
10+
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="9.0.0" />
11+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.0" />
12+
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="9.0.0" />
13+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="9.0.0" />
14+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="9.0.0">
1616
<PrivateAssets>all</PrivateAssets>
1717
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1818
</PackageReference>
19-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.0" />
19+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
2020
<PackageReference Include="EfCore.GenericServices.AspNetCore" Version="4.1.1" />
2121
</ItemGroup>
2222

Example2.WebApiWithToken.IndividualAccounts/Example2.WebApiWithToken.IndividualAccounts.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net8.0</TargetFramework>
4+
<TargetFramework>net9.0</TargetFramework>
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.0" />
9-
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="8.0.0" />
10-
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="8.0.0" />
11-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.2">
8+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.0" />
9+
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="9.0.0" />
10+
<PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="9.0.0" />
11+
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="9.0.0">
1212
<PrivateAssets>all</PrivateAssets>
1313
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
1414
</PackageReference>
15-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
16-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.0" />
17-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
15+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="9.0.0" />
16+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="9.0.0" />
17+
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.0.0" />
1818
<PackageReference Include="Net.DistributedFileStoreCache" Version="2.0.0" />
1919
</ItemGroup>
2020

0 commit comments

Comments
 (0)