From a1ac81e907b5f0cca0745cd969dd1a2c0c8e83c9 Mon Sep 17 00:00:00 2001 From: sbwalker Date: Mon, 10 Feb 2025 16:53:22 -0500 Subject: [PATCH] fix #5089 - remove upgrade cleanup logic as .NET 9.0.1 moves assemblies back to /bin folder --- .../Infrastructure/UpgradeManager.cs | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/Oqtane.Server/Infrastructure/UpgradeManager.cs b/Oqtane.Server/Infrastructure/UpgradeManager.cs index 8116cfce..210961c4 100644 --- a/Oqtane.Server/Infrastructure/UpgradeManager.cs +++ b/Oqtane.Server/Infrastructure/UpgradeManager.cs @@ -72,9 +72,6 @@ namespace Oqtane.Infrastructure case "5.2.1": Upgrade_5_2_1(tenant, scope); break; - case "6.0.1": - Upgrade_6_0_1(tenant, scope); - break; case "6.1.0": Upgrade_6_1_0(tenant, scope); break; @@ -450,41 +447,6 @@ namespace Oqtane.Infrastructure AddPagesToSites(scope, tenant, pageTemplates); } - private void Upgrade_6_0_1(Tenant tenant, IServiceScope scope) - { - // assemblies which have been relocated to the bin/refs folder in .NET 9 - string[] assemblies = { - "Microsoft.AspNetCore.Authorization.dll", - "Microsoft.AspNetCore.Components.Authorization.dll", - "Microsoft.AspNetCore.Components.dll", - "Microsoft.AspNetCore.Components.Forms.dll", - "Microsoft.AspNetCore.Components.Web.dll", - "Microsoft.AspNetCore.Cryptography.Internal.dll", - "Microsoft.AspNetCore.Cryptography.KeyDerivation.dll", - "Microsoft.AspNetCore.Metadata.dll", - "Microsoft.Extensions.Caching.Memory.dll", - "Microsoft.Extensions.Configuration.Binder.dll", - "Microsoft.Extensions.Configuration.FileExtensions.dll", - "Microsoft.Extensions.Configuration.Json.dll", - "Microsoft.Extensions.DependencyInjection.Abstractions.dll", - "Microsoft.Extensions.DependencyInjection.dll", - "Microsoft.Extensions.Diagnostics.Abstractions.dll", - "Microsoft.Extensions.Diagnostics.dll", - "Microsoft.Extensions.Http.dll", - "Microsoft.Extensions.Identity.Core.dll", - "Microsoft.Extensions.Identity.Stores.dll", - "Microsoft.Extensions.Localization.Abstractions.dll", - "Microsoft.Extensions.Localization.dll", - "Microsoft.Extensions.Logging.Abstractions.dll", - "Microsoft.Extensions.Logging.dll", - "Microsoft.Extensions.Options.dll", - "Microsoft.JSInterop.dll", - "System.Text.Json.dll" - }; - - RemoveAssemblies(tenant, assemblies, "6.0.1"); - } - private void Upgrade_6_1_0(Tenant tenant, IServiceScope scope) { // remove MySql.EntityFrameworkCore package (replaced by Pomelo.EntityFrameworkCore.MySql)