From 918044d6cef43d78265852049044c04c5c7d0e54 Mon Sep 17 00:00:00 2001 From: selman koc <64414348+skoc10@users.noreply.github.com> Date: Tue, 17 Jan 2023 10:54:44 +0300 Subject: [PATCH 1/3] Update common.props --- common.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.props b/common.props index 6eb1069abe..f848284637 100644 --- a/common.props +++ b/common.props @@ -1,7 +1,7 @@ latest - 6.0.2 + 6.0.3 $(NoWarn);CS1591;CS0436 https://abp.io/assets/abp_nupkg.png https://abp.io/ From fab8de3519df6e656792f34a0771fd1ba1072430 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 17 Jan 2023 17:42:28 +0800 Subject: [PATCH 2/3] Update Startup.cs --- .../Volo/Abp/AspNetCore/Mvc/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Startup.cs b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Startup.cs index e26e6ce2c3..04d03bb570 100644 --- a/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Startup.cs +++ b/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/Startup.cs @@ -18,7 +18,7 @@ public class Startup var plugDllInPath = Path.Combine(hostEnvironment.ContentRootPath, @"..\..\..\..\..\Volo.Abp.AspNetCore.Mvc.PlugIn\bin\Debug\net6.0\"); #else - plugDllInPath = Path.Combine(_env.ContentRootPath, + var plugDllInPath = Path.Combine(hostEnvironment.ContentRootPath, @"..\..\..\..\..\Volo.Abp.AspNetCore.Mvc.PlugIn\bin\Release\net6.0\"); #endif From 84f3474430179a648682c740bf5b83d5cd16b9b6 Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 18 Jan 2023 11:11:57 +0800 Subject: [PATCH 3/3] `UseStaticWebAssets` for Blazor Server module. --- .../Components/Server/AbpAspNetCoreComponentsServerModule.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/src/Volo.Abp.AspNetCore.Components.Server/Volo/Abp/AspNetCore/Components/Server/AbpAspNetCoreComponentsServerModule.cs b/framework/src/Volo.Abp.AspNetCore.Components.Server/Volo/Abp/AspNetCore/Components/Server/AbpAspNetCoreComponentsServerModule.cs index d39a633e0e..bc7e995e43 100644 --- a/framework/src/Volo.Abp.AspNetCore.Components.Server/Volo/Abp/AspNetCore/Components/Server/AbpAspNetCoreComponentsServerModule.cs +++ b/framework/src/Volo.Abp.AspNetCore.Components.Server/Volo/Abp/AspNetCore/Components/Server/AbpAspNetCoreComponentsServerModule.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting.StaticWebAssets; using Microsoft.AspNetCore.Routing; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.FileProviders; @@ -26,6 +27,7 @@ public class AbpAspNetCoreComponentsServerModule : AbpModule { public override void ConfigureServices(ServiceConfigurationContext context) { + StaticWebAssetsLoader.UseStaticWebAssets(context.Services.GetHostingEnvironment(), context.Services.GetConfiguration()); context.Services.AddHttpClient(); var serverSideBlazorBuilder = context.Services.AddServerSideBlazor(options => {