diff --git a/.editorconfig b/.editorconfig index e03e36a56..1859f6e0a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -19,6 +19,14 @@ dotnet_diagnostic.IDE0058.severity = silent # Expression value is never used dotnet_diagnostic.IDE0072.severity = silent # missing cases to "=>" switch expression dotnet_diagnostic.IDE0090.severity = silent # Use implicit new dotnet_diagnostic.IDE0270.severity = silent # Simplify null check +dotnet_diagnostic.IDE0290.severity = silent # Use primary constructor +dotnet_diagnostic.IDE0028.severity = silent # Use collection initializers or expressions +dotnet_diagnostic.IDE0301.severity = silent # Use collection expression for empty +dotnet_diagnostic.IDE0300.severity = silent # Use collection expression for array +dotnet_diagnostic.CA1859.severity = silent # Use concrete types when possible for improved performance + + + # https://github.com/dotnet/aspnetcore/issues/47912 dotnet_diagnostic.IDE0005.severity = none # Remove unnecessary using directives (using CS8019 instead) dotnet_diagnostic.CS8019.severity = error # Remove unnecessary using directives diff --git a/src/1-BuildingBlocks/Application/Application.csproj b/src/1-BuildingBlocks/Application/Application.csproj index 605a174f0..0667bfb51 100644 --- a/src/1-BuildingBlocks/Application/Application.csproj +++ b/src/1-BuildingBlocks/Application/Application.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.BuildingBlocks.Application TaskoMask.BuildingBlocks.Application diff --git a/src/1-BuildingBlocks/Contracts/Contracts.csproj b/src/1-BuildingBlocks/Contracts/Contracts.csproj index 62a3ab694..514b788ab 100644 --- a/src/1-BuildingBlocks/Contracts/Contracts.csproj +++ b/src/1-BuildingBlocks/Contracts/Contracts.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.BuildingBlocks.Contracts TaskoMask.BuildingBlocks.Contracts diff --git a/src/1-BuildingBlocks/Domain/Domain.csproj b/src/1-BuildingBlocks/Domain/Domain.csproj index 8a97f2156..f651387a4 100644 --- a/src/1-BuildingBlocks/Domain/Domain.csproj +++ b/src/1-BuildingBlocks/Domain/Domain.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.BuildingBlocks.Domain TaskoMask.BuildingBlocks.Domain @@ -9,7 +9,7 @@ - + diff --git a/src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj b/src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj index 4e11497ff..9d75333fc 100644 --- a/src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj +++ b/src/1-BuildingBlocks/Infrastructure/Infrastructure.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.BuildingBlocks.Infrastructure TaskoMask.BuildingBlocks.Infrastructure diff --git a/src/1-BuildingBlocks/Test/Test.csproj b/src/1-BuildingBlocks/Test/Test.csproj index b3e44763b..319c75c0c 100644 --- a/src/1-BuildingBlocks/Test/Test.csproj +++ b/src/1-BuildingBlocks/Test/Test.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.BuildingBlocks.Test TaskoMask.BuildingBlocks.Test diff --git a/src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj b/src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj index 161552cd7..a090c97b8 100644 --- a/src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj +++ b/src/1-BuildingBlocks/Web.MVC/Web.MVC.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.BuildingBlocks.Web.MVC TaskoMask.BuildingBlocks.Web.MVC diff --git a/src/1-BuildingBlocks/Web/Web.csproj b/src/1-BuildingBlocks/Web/Web.csproj index 517cb14aa..ca52364be 100644 --- a/src/1-BuildingBlocks/Web/Web.csproj +++ b/src/1-BuildingBlocks/Web/Web.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.BuildingBlocks.Web TaskoMask.BuildingBlocks.Web diff --git a/src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj b/src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj index cd04d30a0..737c7431e 100644 --- a/src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj +++ b/src/2-Services/Boards/Api/Boards.Read.Api/Boards.Read.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Boards.Read.Api TaskoMask.Services.Boards.Read.Api ad97a501-340f-470b-bd59-307501d3568c diff --git a/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/GrpcExtensions.cs b/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/GrpcExtensions.cs index 5d435f18a..dae386340 100644 --- a/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/GrpcExtensions.cs +++ b/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/GrpcExtensions.cs @@ -1,5 +1,4 @@ using Microsoft.AspNetCore.Builder; -using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using System; @@ -17,13 +16,13 @@ public static class GrpcExtensions /// /// /// - public static void MapGrpcServices(this IEndpointRouteBuilder endpoints) + public static void MapGrpcServices(this WebApplication app) { - endpoints.MapGrpcService(); - endpoints.MapGrpcService(); - endpoints.MapGrpcService(); - endpoints.MapGrpcService(); - endpoints.MapGrpcService(); + app.MapGrpcService(); + app.MapGrpcService(); + app.MapGrpcService(); + app.MapGrpcService(); + app.MapGrpcService(); } /// diff --git a/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/HostingExtensions.cs b/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/HostingExtensions.cs index 69ba749cb..150e5b311 100644 --- a/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Boards/Api/Boards.Read.Api/Configuration/HostingExtensions.cs @@ -40,11 +40,9 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabase(); - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - endpoints.MapGrpcServices(); - }); + app.MapControllers(); + + app.MapGrpcServices(); return app; } diff --git a/src/2-Services/Boards/Api/Boards.Read.Api/Features/Boards/GetBoardById/GetBoardByIdRestEndpoint.cs b/src/2-Services/Boards/Api/Boards.Read.Api/Features/Boards/GetBoardById/GetBoardByIdRestEndpoint.cs index 74dcfd578..53e5f162d 100644 --- a/src/2-Services/Boards/Api/Boards.Read.Api/Features/Boards/GetBoardById/GetBoardByIdRestEndpoint.cs +++ b/src/2-Services/Boards/Api/Boards.Read.Api/Features/Boards/GetBoardById/GetBoardByIdRestEndpoint.cs @@ -1,4 +1,3 @@ -using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Threading.Tasks; @@ -10,7 +9,7 @@ namespace TaskoMask.Services.Boards.Read.Api.Features.Boards.GetBoardById; -[Authorize("user-read-access")] +//[Authorize("user-read-access")] [Tags("Boards")] public class GetBoardByIdRestEndpoint : BaseApiController { diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj b/src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj index cb05005fd..44b265d58 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj +++ b/src/2-Services/Boards/Api/Boards.Write.Api/Boards.Write.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Boards.Write.Api TaskoMask.Services.Boards.Write.Api c9714a06-4333-446f-831c-ea6b0c311bb3 diff --git a/src/2-Services/Boards/Api/Boards.Write.Api/Configuration/HostingExtensions.cs b/src/2-Services/Boards/Api/Boards.Write.Api/Configuration/HostingExtensions.cs index a50e83203..6c5fdb919 100644 --- a/src/2-Services/Boards/Api/Boards.Write.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Boards/Api/Boards.Write.Api/Configuration/HostingExtensions.cs @@ -35,10 +35,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabasesAndSeedEssentialData(); - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); + app.MapControllers(); return app; } diff --git a/src/2-Services/Boards/Tests/Boards.Read.Tests.Integration/Boards.Read.Tests.Integration.csproj b/src/2-Services/Boards/Tests/Boards.Read.Tests.Integration/Boards.Read.Tests.Integration.csproj index ff942a78e..8fad6860d 100644 --- a/src/2-Services/Boards/Tests/Boards.Read.Tests.Integration/Boards.Read.Tests.Integration.csproj +++ b/src/2-Services/Boards/Tests/Boards.Read.Tests.Integration/Boards.Read.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Boards.Read.Tests.Integration TaskoMask.Services.Boards.Read.Tests.Integration diff --git a/src/2-Services/Boards/Tests/Boards.Write.Tests.Base/Boards.Write.Tests.Base.csproj b/src/2-Services/Boards/Tests/Boards.Write.Tests.Base/Boards.Write.Tests.Base.csproj index d6c462293..52fc6e4e5 100644 --- a/src/2-Services/Boards/Tests/Boards.Write.Tests.Base/Boards.Write.Tests.Base.csproj +++ b/src/2-Services/Boards/Tests/Boards.Write.Tests.Base/Boards.Write.Tests.Base.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Boards.Write.Tests.Base TaskoMask.Services.Boards.Write.Tests.Base diff --git a/src/2-Services/Boards/Tests/Boards.Write.Tests.Integration/Boards.Write.Tests.Integration.csproj b/src/2-Services/Boards/Tests/Boards.Write.Tests.Integration/Boards.Write.Tests.Integration.csproj index 1ab2e7371..c60540f49 100644 --- a/src/2-Services/Boards/Tests/Boards.Write.Tests.Integration/Boards.Write.Tests.Integration.csproj +++ b/src/2-Services/Boards/Tests/Boards.Write.Tests.Integration/Boards.Write.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Boards.Write.Tests.Integration TaskoMask.Services.Boards.Write.Tests.Integration diff --git a/src/2-Services/Boards/Tests/Boards.Write.Tests.Unit/Boards.Write.Tests.Unit.csproj b/src/2-Services/Boards/Tests/Boards.Write.Tests.Unit/Boards.Write.Tests.Unit.csproj index 25922d1b4..1b9f222d1 100644 --- a/src/2-Services/Boards/Tests/Boards.Write.Tests.Unit/Boards.Write.Tests.Unit.csproj +++ b/src/2-Services/Boards/Tests/Boards.Write.Tests.Unit/Boards.Write.Tests.Unit.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Boards.Write.Tests.Unit TaskoMask.Services.Boards.Write.Tests.Unit diff --git a/src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj b/src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj index f4ec566a3..a52314131 100644 --- a/src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj +++ b/src/2-Services/Identity/Api/Identity.Api/Identity.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Identity.Api TaskoMask.Services.Identity.Api 755a7a1d-10e7-4626-9a60-81b74933b0b3 diff --git a/src/2-Services/Identity/Api/Identity.Api/Pages/SecurityHeadersAttribute.cs b/src/2-Services/Identity/Api/Identity.Api/Pages/SecurityHeadersAttribute.cs index d12382452..0af01f3a3 100644 --- a/src/2-Services/Identity/Api/Identity.Api/Pages/SecurityHeadersAttribute.cs +++ b/src/2-Services/Identity/Api/Identity.Api/Pages/SecurityHeadersAttribute.cs @@ -2,6 +2,7 @@ // See LICENSE in the project root for license information. +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc.Filters; using Microsoft.AspNetCore.Mvc.RazorPages; @@ -17,13 +18,13 @@ public override void OnResultExecuting(ResultExecutingContext context) // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options if (!context.HttpContext.Response.Headers.ContainsKey("X-Content-Type-Options")) { - context.HttpContext.Response.Headers.Add("X-Content-Type-Options", "nosniff"); + context.HttpContext.Response.Headers.Append("X-Content-Type-Options", "nosniff"); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options if (!context.HttpContext.Response.Headers.ContainsKey("X-Frame-Options")) { - context.HttpContext.Response.Headers.Add("X-Frame-Options", "SAMEORIGIN"); + context.HttpContext.Response.Headers.Append("X-Frame-Options", "SAMEORIGIN"); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy @@ -37,19 +38,19 @@ public override void OnResultExecuting(ResultExecutingContext context) // once for standards compliant browsers if (!context.HttpContext.Response.Headers.ContainsKey("Content-Security-Policy")) { - context.HttpContext.Response.Headers.Add("Content-Security-Policy", csp); + context.HttpContext.Response.Headers.Append("Content-Security-Policy", csp); } // and once again for IE if (!context.HttpContext.Response.Headers.ContainsKey("X-Content-Security-Policy")) { - context.HttpContext.Response.Headers.Add("X-Content-Security-Policy", csp); + context.HttpContext.Response.Headers.Append("X-Content-Security-Policy", csp); } // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referrer-Policy var referrer_policy = "no-referrer"; if (!context.HttpContext.Response.Headers.ContainsKey("Referrer-Policy")) { - context.HttpContext.Response.Headers.Add("Referrer-Policy", referrer_policy); + context.HttpContext.Response.Headers.Append("Referrer-Policy", referrer_policy); } } } diff --git a/src/2-Services/Identity/Tests/Identity.Tests.Integration/Identity.Tests.Integration.csproj b/src/2-Services/Identity/Tests/Identity.Tests.Integration/Identity.Tests.Integration.csproj index c65b15e8a..c3bbeecb9 100644 --- a/src/2-Services/Identity/Tests/Identity.Tests.Integration/Identity.Tests.Integration.csproj +++ b/src/2-Services/Identity/Tests/Identity.Tests.Integration/Identity.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Identity.Tests.Integration TaskoMask.Services.Identity.Tests.Integration diff --git a/src/2-Services/Identity/Tests/Identity.Tests.Unit/Identity.Tests.Unit.csproj b/src/2-Services/Identity/Tests/Identity.Tests.Unit/Identity.Tests.Unit.csproj index 59a7b96d1..69611a249 100644 --- a/src/2-Services/Identity/Tests/Identity.Tests.Unit/Identity.Tests.Unit.csproj +++ b/src/2-Services/Identity/Tests/Identity.Tests.Unit/Identity.Tests.Unit.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Identity.Tests.Unit TaskoMask.Services.Identity.Tests.Unit diff --git a/src/2-Services/Owners/Api/Owners.Read.Api/Configuration/HostingExtensions.cs b/src/2-Services/Owners/Api/Owners.Read.Api/Configuration/HostingExtensions.cs index 9a7e75f69..ea493d45d 100644 --- a/src/2-Services/Owners/Api/Owners.Read.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Owners/Api/Owners.Read.Api/Configuration/HostingExtensions.cs @@ -38,11 +38,9 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabase(); - app.UseEndpoints(endpoints => - { - endpoints.MapGrpcServices(); - endpoints.MapControllers(); - }); + app.MapGrpcServices(); + + app.MapControllers(); return app; } diff --git a/src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj b/src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj index 9d2b11072..19a56b767 100644 --- a/src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj +++ b/src/2-Services/Owners/Api/Owners.Read.Api/Owners.Read.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Owners.Read.Api TaskoMask.Services.Owners.Read.Api 5a6364b4-cc6f-4fa9-b2d3-b0040526bb00 diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/Configuration/HostingExtensions.cs b/src/2-Services/Owners/Api/Owners.Write.Api/Configuration/HostingExtensions.cs index c7e669e43..48212e19c 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Owners/Api/Owners.Write.Api/Configuration/HostingExtensions.cs @@ -35,10 +35,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabasesAndSeedEssentialData(); - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); + app.MapControllers(); return app; } diff --git a/src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj b/src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj index f9a14e816..914e20482 100644 --- a/src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj +++ b/src/2-Services/Owners/Api/Owners.Write.Api/Owners.Write.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Owners.Write.Api TaskoMask.Services.Owners.Write.Api 0dd4049d-0324-4ff6-8a77-9a1b9cf12f56 diff --git a/src/2-Services/Owners/Tests/Owners.Read.Tests.Integration/Owners.Read.Tests.Integration.csproj b/src/2-Services/Owners/Tests/Owners.Read.Tests.Integration/Owners.Read.Tests.Integration.csproj index e7e053832..4e8b8e463 100644 --- a/src/2-Services/Owners/Tests/Owners.Read.Tests.Integration/Owners.Read.Tests.Integration.csproj +++ b/src/2-Services/Owners/Tests/Owners.Read.Tests.Integration/Owners.Read.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Owners.Read.IntegrationTests TaskoMask.Services.Owners.Read.IntegrationTests diff --git a/src/2-Services/Owners/Tests/Owners.Write.Tests.Base/Owners.Write.Tests.Base.csproj b/src/2-Services/Owners/Tests/Owners.Write.Tests.Base/Owners.Write.Tests.Base.csproj index cc76dda4a..cfc8abc05 100644 --- a/src/2-Services/Owners/Tests/Owners.Write.Tests.Base/Owners.Write.Tests.Base.csproj +++ b/src/2-Services/Owners/Tests/Owners.Write.Tests.Base/Owners.Write.Tests.Base.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 TaskoMask.Services.Owners.Write.Tests.Base TaskoMask.Services.Owners.Write.Tests.Base diff --git a/src/2-Services/Owners/Tests/Owners.Write.Tests.Integration/Owners.Write.Tests.Integration.csproj b/src/2-Services/Owners/Tests/Owners.Write.Tests.Integration/Owners.Write.Tests.Integration.csproj index 5504e70d7..865c94886 100644 --- a/src/2-Services/Owners/Tests/Owners.Write.Tests.Integration/Owners.Write.Tests.Integration.csproj +++ b/src/2-Services/Owners/Tests/Owners.Write.Tests.Integration/Owners.Write.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Owners.Write.Tests.Integration TaskoMask.Services.Owners.Write.Tests.Integration diff --git a/src/2-Services/Owners/Tests/Owners.Write.Tests.Unit/Owners.Write.Tests.Unit.csproj b/src/2-Services/Owners/Tests/Owners.Write.Tests.Unit/Owners.Write.Tests.Unit.csproj index 4587ee781..4166615e5 100644 --- a/src/2-Services/Owners/Tests/Owners.Write.Tests.Unit/Owners.Write.Tests.Unit.csproj +++ b/src/2-Services/Owners/Tests/Owners.Write.Tests.Unit/Owners.Write.Tests.Unit.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Owners.Write.Tests.Unit TaskoMask.Services.Owners.Write.Tests.Unit false diff --git a/src/2-Services/Tasks/Api/Tasks.Read.Api/Configuration/HostingExtensions.cs b/src/2-Services/Tasks/Api/Tasks.Read.Api/Configuration/HostingExtensions.cs index 4e471b269..607d9b883 100644 --- a/src/2-Services/Tasks/Api/Tasks.Read.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Tasks/Api/Tasks.Read.Api/Configuration/HostingExtensions.cs @@ -40,11 +40,9 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabase(); - app.UseEndpoints(endpoints => - { - endpoints.MapGrpcServices(); - endpoints.MapControllers(); - }); + app.MapGrpcServices(); + + app.MapControllers(); return app; } diff --git a/src/2-Services/Tasks/Api/Tasks.Read.Api/Tasks.Read.Api.csproj b/src/2-Services/Tasks/Api/Tasks.Read.Api/Tasks.Read.Api.csproj index a7986d977..f6dfa343f 100644 --- a/src/2-Services/Tasks/Api/Tasks.Read.Api/Tasks.Read.Api.csproj +++ b/src/2-Services/Tasks/Api/Tasks.Read.Api/Tasks.Read.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Tasks.Read.Api TaskoMask.Services.Tasks.Read.Api cd2a900c-efdb-4190-8884-a22c88d254ae diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/Configuration/HostingExtensions.cs b/src/2-Services/Tasks/Api/Tasks.Write.Api/Configuration/HostingExtensions.cs index 978456bb0..f86ad609f 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/Configuration/HostingExtensions.cs +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/Configuration/HostingExtensions.cs @@ -35,10 +35,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.Services.InitialDatabasesAndSeedEssentialData(); - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); + app.MapControllers(); return app; } diff --git a/src/2-Services/Tasks/Api/Tasks.Write.Api/Tasks.Write.Api.csproj b/src/2-Services/Tasks/Api/Tasks.Write.Api/Tasks.Write.Api.csproj index 69111c082..678a60df3 100644 --- a/src/2-Services/Tasks/Api/Tasks.Write.Api/Tasks.Write.Api.csproj +++ b/src/2-Services/Tasks/Api/Tasks.Write.Api/Tasks.Write.Api.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Tasks.Write.Api TaskoMask.Services.Tasks.Write.Api 903c4a59-e93d-4e7f-98f6-b5278a2feea3 diff --git a/src/2-Services/Tasks/Tests/Tasks.Read.Tests.Integration/Tasks.Read.Tests.Integration.csproj b/src/2-Services/Tasks/Tests/Tasks.Read.Tests.Integration/Tasks.Read.Tests.Integration.csproj index cf0a26434..80efd3321 100644 --- a/src/2-Services/Tasks/Tests/Tasks.Read.Tests.Integration/Tasks.Read.Tests.Integration.csproj +++ b/src/2-Services/Tasks/Tests/Tasks.Read.Tests.Integration/Tasks.Read.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Tasks.Read.Tests.Integration TaskoMask.Services.Tasks.Read.Tests.Integration false diff --git a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Base/Tasks.Write.Tests.Base.csproj b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Base/Tasks.Write.Tests.Base.csproj index dab71c5db..1177daac4 100644 --- a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Base/Tasks.Write.Tests.Base.csproj +++ b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Base/Tasks.Write.Tests.Base.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 TaskoMask.Services.Tasks.Write.Tests.Base TaskoMask.Services.Tasks.Write.Tests.Base diff --git a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Integration/Tasks.Write.Tests.Integration.csproj b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Integration/Tasks.Write.Tests.Integration.csproj index ddf73c5e6..5bd9d6fb7 100644 --- a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Integration/Tasks.Write.Tests.Integration.csproj +++ b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Integration/Tasks.Write.Tests.Integration.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Services.Tasks.Write.Tests.Integration TaskoMask.Services.Tasks.Write.Tests.Integration false diff --git a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Unit/Tasks.Write.Tests.Unit.csproj b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Unit/Tasks.Write.Tests.Unit.csproj index 424f35b69..99dfd413a 100644 --- a/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Unit/Tasks.Write.Tests.Unit.csproj +++ b/src/2-Services/Tasks/Tests/Tasks.Write.Tests.Unit/Tasks.Write.Tests.Unit.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Services.Tasks.Write.Tests.Unit TaskoMask.Services.Tasks.Write.Tests.Unit diff --git a/src/3-ApiGateways/UserPanel/Aggregator/Aggregator.csproj b/src/3-ApiGateways/UserPanel/Aggregator/Aggregator.csproj index 110c397d3..be8216637 100644 --- a/src/3-ApiGateways/UserPanel/Aggregator/Aggregator.csproj +++ b/src/3-ApiGateways/UserPanel/Aggregator/Aggregator.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 true TaskoMask.ApiGateways.UserPanel.Aggregator TaskoMask.ApiGateways.UserPanel.Aggregator diff --git a/src/3-ApiGateways/UserPanel/Aggregator/Configuration/HostingExtensions.cs b/src/3-ApiGateways/UserPanel/Aggregator/Configuration/HostingExtensions.cs index 2c380c5f1..e1ab51cf9 100644 --- a/src/3-ApiGateways/UserPanel/Aggregator/Configuration/HostingExtensions.cs +++ b/src/3-ApiGateways/UserPanel/Aggregator/Configuration/HostingExtensions.cs @@ -32,10 +32,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.UseWebApiPreConfigured(app.Environment, configuration); - app.UseEndpoints(endpoints => - { - endpoints.MapControllers(); - }); + app.MapControllers(); return app; } diff --git a/src/3-ApiGateways/UserPanel/ApiGateway/ApiGateway.csproj b/src/3-ApiGateways/UserPanel/ApiGateway/ApiGateway.csproj index 83ee1761c..b1b0ffe6f 100644 --- a/src/3-ApiGateways/UserPanel/ApiGateway/ApiGateway.csproj +++ b/src/3-ApiGateways/UserPanel/ApiGateway/ApiGateway.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 true TaskoMask.ApiGateways.UserPanel.ApiGateway TaskoMask.ApiGateways.UserPanel.ApiGateway diff --git a/src/4-Clients/UserPanel/UserPanel.csproj b/src/4-Clients/UserPanel/UserPanel.csproj index f0b02f3b1..3bc91557b 100644 --- a/src/4-Clients/UserPanel/UserPanel.csproj +++ b/src/4-Clients/UserPanel/UserPanel.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable TaskoMask.Clients.UserPanel TaskoMask.Clients.UserPanel diff --git a/src/4-Clients/Website/Configuration/HostingExtensions.cs b/src/4-Clients/Website/Configuration/HostingExtensions.cs index 0d3d18ec0..1e0306f22 100644 --- a/src/4-Clients/Website/Configuration/HostingExtensions.cs +++ b/src/4-Clients/Website/Configuration/HostingExtensions.cs @@ -27,10 +27,7 @@ public static WebApplication ConfigurePipeline(this WebApplication app, IConfigu app.UseMvcPreConfigured(app.Environment, configuration); - app.UseEndpoints(endpoints => - { - endpoints.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); - }); + app.MapControllerRoute(name: "default", pattern: "{controller=Home}/{action=Index}/{id?}"); return app; } diff --git a/src/4-Clients/Website/Website.csproj b/src/4-Clients/Website/Website.csproj index 3b966de68..62cddd90d 100644 --- a/src/4-Clients/Website/Website.csproj +++ b/src/4-Clients/Website/Website.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 enable false b786f536-e1c4-49fe-9d06-7247aedebda8 diff --git a/src/5-Tests/Acceptance/Tests.Acceptance.API/Tests.Acceptance.API.csproj b/src/5-Tests/Acceptance/Tests.Acceptance.API/Tests.Acceptance.API.csproj index 6b30314d7..b1fee8631 100644 --- a/src/5-Tests/Acceptance/Tests.Acceptance.API/Tests.Acceptance.API.csproj +++ b/src/5-Tests/Acceptance/Tests.Acceptance.API/Tests.Acceptance.API.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Tests.Acceptance.API TaskoMask.Tests.Acceptance.API diff --git a/src/5-Tests/Acceptance/Tests.Acceptance.Core/Tests.Acceptance.Core.csproj b/src/5-Tests/Acceptance/Tests.Acceptance.Core/Tests.Acceptance.Core.csproj index 358286051..2361c67f1 100644 --- a/src/5-Tests/Acceptance/Tests.Acceptance.Core/Tests.Acceptance.Core.csproj +++ b/src/5-Tests/Acceptance/Tests.Acceptance.Core/Tests.Acceptance.Core.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Tests.Acceptance.Core TaskoMask.Tests.Acceptance.Core diff --git a/src/5-Tests/Acceptance/Tests.Acceptance.Specs/Tests.Acceptance.Specs.csproj b/src/5-Tests/Acceptance/Tests.Acceptance.Specs/Tests.Acceptance.Specs.csproj index c53f5469a..c113c6a84 100644 --- a/src/5-Tests/Acceptance/Tests.Acceptance.Specs/Tests.Acceptance.Specs.csproj +++ b/src/5-Tests/Acceptance/Tests.Acceptance.Specs/Tests.Acceptance.Specs.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Tests.Acceptance.Specs TaskoMask.Tests.Acceptance.Specs diff --git a/src/5-Tests/Acceptance/Tests.Acceptance.UI/Tests.Acceptance.UI.csproj b/src/5-Tests/Acceptance/Tests.Acceptance.UI/Tests.Acceptance.UI.csproj index e5dd3287e..5de13be73 100644 --- a/src/5-Tests/Acceptance/Tests.Acceptance.UI/Tests.Acceptance.UI.csproj +++ b/src/5-Tests/Acceptance/Tests.Acceptance.UI/Tests.Acceptance.UI.csproj @@ -1,7 +1,7 @@  - net6.0 + net8.0 TaskoMask.Tests.Acceptance.UI TaskoMask.Tests.Acceptance.UI diff --git a/src/6-Build/Build.csproj b/src/6-Build/Build.csproj index d86220174..dc15929d6 100644 --- a/src/6-Build/Build.csproj +++ b/src/6-Build/Build.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 TaskoMask.Build TaskoMask.Build IDE0051;CS0649;CS0169;CA1050;CA1822;CA2211;IDE1006