diff --git a/src/blazor/admin/BootstrapAdmin.Web/Services/AdminService.cs b/src/blazor/admin/BootstrapAdmin.Web.Core/AdminService.cs
similarity index 92%
rename from src/blazor/admin/BootstrapAdmin.Web/Services/AdminService.cs
rename to src/blazor/admin/BootstrapAdmin.Web.Core/AdminService.cs
index d621cc65..4426b942 100644
--- a/src/blazor/admin/BootstrapAdmin.Web/Services/AdminService.cs
+++ b/src/blazor/admin/BootstrapAdmin.Web.Core/AdminService.cs
@@ -1,9 +1,11 @@
using Bootstrap.Security.Blazor;
-using BootstrapAdmin.Web.Core;
-namespace BootstrapAdmin.Web.Services;
+namespace BootstrapAdmin.Web.Core;
-class AdminService : IBootstrapAdminService
+///
+///
+///
+public class AdminService : IBootstrapAdminService
{
private IUser User { get; set; }
diff --git a/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj b/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj
index af43bcc3..c5ef2096 100644
--- a/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj
+++ b/src/blazor/admin/BootstrapAdmin.Web.Core/BootstrapAdmin.Web.Core.csproj
@@ -1,7 +1,7 @@
-
+
diff --git a/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs b/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs
index d2a1e943..971c169d 100644
--- a/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs
+++ b/src/blazor/admin/BootstrapAdmin.Web/Extensions/ServicesExtensions.cs
@@ -1,4 +1,5 @@
-using BootstrapAdmin.Web.Services;
+using BootstrapAdmin.Web.Core;
+using BootstrapAdmin.Web.Services;
using BootstrapAdmin.Web.Services.SMS;
using BootstrapAdmin.Web.Services.SMS.Tencent;
using BootstrapAdmin.Web.Utils;
@@ -20,14 +21,10 @@ namespace Microsoft.Extensions.DependencyInjection
///
public static IServiceCollection AddBootstrapBlazorAdmin(this IServiceCollection services)
{
- Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
services.AddLogging(logging => logging.AddFileLogger().AddCloudLogger().AddDBLogger(ExceptionsHelper.Log));
services.AddCors();
services.AddResponseCompression();
- // 增加编码服务
- services.AddSingleton(HtmlEncoder.Create(UnicodeRanges.All));
-
// 增加 健康检查服务
services.AddAdminHealthChecks();
diff --git a/src/blazor/client/BootstrapClient.Web/Extensions/ServicesExtensions.cs b/src/blazor/client/BootstrapClient.Web/Extensions/ServicesExtensions.cs
index e579c44c..7c152628 100644
--- a/src/blazor/client/BootstrapClient.Web/Extensions/ServicesExtensions.cs
+++ b/src/blazor/client/BootstrapClient.Web/Extensions/ServicesExtensions.cs
@@ -1,4 +1,4 @@
-using BootstrapAdmin.Web.Services;
+using BootstrapAdmin.Web.Core;
using System.Text;
namespace Microsoft.Extensions.DependencyInjection
@@ -14,8 +14,6 @@ namespace Microsoft.Extensions.DependencyInjection
///
public static IServiceCollection AddBootstrapBlazorClient(this IServiceCollection services)
{
- Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
-
services.AddCors();
services.AddResponseCompression();
diff --git a/test/UnitTest/UnitTest.csproj b/test/UnitTest/UnitTest.csproj
index 7a389f92..2448c539 100644
--- a/test/UnitTest/UnitTest.csproj
+++ b/test/UnitTest/UnitTest.csproj
@@ -29,9 +29,9 @@
-
-
-
+
+
+