From 30e6dd2c54ce455c343695e2299b39717f900602 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sat, 22 Mar 2025 02:42:47 +0200 Subject: [PATCH] .NET 8 upgrade - part 1 --- .../Netmash.Application.DataContracts.csproj | 8 ++++---- .../Netmash.Extensions.Swagger.csproj | 6 +++--- .../SwaggerExtensions.cs | 12 +++--------- ...sh.Infrastructure.DatabaseMigration.csproj | 19 ++++++++++--------- 4 files changed, 20 insertions(+), 25 deletions(-) diff --git a/src/application/Netmash.Application.DataContracts/Netmash.Application.DataContracts.csproj b/src/application/Netmash.Application.DataContracts/Netmash.Application.DataContracts.csproj index e59d5aa..f1615ad 100644 --- a/src/application/Netmash.Application.DataContracts/Netmash.Application.DataContracts.csproj +++ b/src/application/Netmash.Application.DataContracts/Netmash.Application.DataContracts.csproj @@ -1,17 +1,17 @@ - + - net6.0 + net8.0 Data contracts Data contracts https://lab.code-rove.com/gitea/bricks/netmash https://lab.code-rove.com/gitea/bricks/netmash Git - 1.0.1 + 1.1.0 - + diff --git a/src/extensions/swagger/Netmash.Extensions.Swagger/Netmash.Extensions.Swagger.csproj b/src/extensions/swagger/Netmash.Extensions.Swagger/Netmash.Extensions.Swagger.csproj index f358f89..932d141 100644 --- a/src/extensions/swagger/Netmash.Extensions.Swagger/Netmash.Extensions.Swagger.csproj +++ b/src/extensions/swagger/Netmash.Extensions.Swagger/Netmash.Extensions.Swagger.csproj @@ -1,18 +1,18 @@ - net6.0 + net8.0 Swagger extensions Swagger extensions https://lab.code-rove.com/gitea/bricks/netmash https://lab.code-rove.com/gitea/bricks/netmash Git Netmash swagger - 1.0.7 + 1.1.0 - + diff --git a/src/extensions/swagger/Netmash.Extensions.Swagger/SwaggerExtensions.cs b/src/extensions/swagger/Netmash.Extensions.Swagger/SwaggerExtensions.cs index 68f22c8..ed7a70f 100644 --- a/src/extensions/swagger/Netmash.Extensions.Swagger/SwaggerExtensions.cs +++ b/src/extensions/swagger/Netmash.Extensions.Swagger/SwaggerExtensions.cs @@ -18,7 +18,7 @@ namespace Netmash.Extensions.Swagger { c.SwaggerDoc("v1", new OpenApiInfo { Title = title, Version = "v1" }); c.SetAuthorization(authorizationType); - c.CustomSchemaIds(type => type.ToString()); + c.CustomSchemaIds(type => type.FullName.Replace("+", ".")); }); return services; @@ -28,17 +28,11 @@ namespace Netmash.Extensions.Swagger { services.AddSwaggerGen(c => { - c.SwaggerDoc("v1", - new OpenApiInfo - { - Title = title, - Version = "v1" - }); - + c.SwaggerDoc("v1", new OpenApiInfo { Title = title, Version = "v1" }); c.SetAuthorization(authorizationType); c.OperationFilter(); c.SchemaFilter(); - c.CustomSchemaIds(type => type.ToString()); + c.CustomSchemaIds(type => type.FullName.Replace("+", ".")); }); return services; diff --git a/src/infrastructure/Netmash.Infrastructure.DatabaseMigration/Netmash.Infrastructure.DatabaseMigration.csproj b/src/infrastructure/Netmash.Infrastructure.DatabaseMigration/Netmash.Infrastructure.DatabaseMigration.csproj index 183e230..767a115 100644 --- a/src/infrastructure/Netmash.Infrastructure.DatabaseMigration/Netmash.Infrastructure.DatabaseMigration.csproj +++ b/src/infrastructure/Netmash.Infrastructure.DatabaseMigration/Netmash.Infrastructure.DatabaseMigration.csproj @@ -1,15 +1,16 @@  - net6.0 + net8.0 Database migration service https://lab.code-rove.com/gitea/bricks/netmash https://lab.code-rove.com/gitea/bricks/netmash Git Netmash database migration - 1.2.0 + 1.3.0 1.1.0: From this version the migration service can keep its metadata in the database (SqlServer or Sqlite) -1.2.0: .NET 6 upgrade +1.2.0: .NET 6 upgrade +1.3.0: .NET 8 upgrade @@ -29,12 +30,12 @@ - - - - - - + + + + + +