From d1bdd754f61220be1ebdaefecdd30b6e9d4cf8db Mon Sep 17 00:00:00 2001 From: maliming Date: Wed, 11 Nov 2026 09:20:19 +0800 Subject: [PATCH] Apply the .NET 11 SDK workarounds to the 11.0.1xx band --- .github/workflows/build-and-test.yml | 6 +++++ Directory.Build.targets | 7 +++--- .../release-info/migration-guides/abp-11-0.md | 25 +++++++++++++++++++ .../Volo.Abp.AspNetCore.targets | 17 +++++++------ global.json | 2 +- 5 files changed, 46 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 9f091ce341..016b7e362d 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -16,8 +16,11 @@ on: - 'templates/**/*.cshtml' - 'templates/**/*.csproj' - 'templates/**/*.razor' + - 'framework/**/*.targets' - 'Directory.Build.props' + - 'Directory.Build.targets' - 'Directory.Packages.props' + - 'global.json' - '.github/workflows/build-and-test.yml' pull_request: @@ -37,8 +40,11 @@ on: - 'templates/**/*.cshtml' - 'templates/**/*.csproj' - 'templates/**/*.razor' + - 'framework/**/*.targets' - 'Directory.Build.props' + - 'Directory.Build.targets' - 'Directory.Packages.props' + - 'global.json' - '.github/workflows/build-and-test.yml' types: - opened diff --git a/Directory.Build.targets b/Directory.Build.targets index 1e424cc5c6..acd591415e 100644 --- a/Directory.Build.targets +++ b/Directory.Build.targets @@ -1,8 +1,9 @@ - - + false diff --git a/docs/en/release-info/migration-guides/abp-11-0.md b/docs/en/release-info/migration-guides/abp-11-0.md index a43bb07586..e3abef71d4 100644 --- a/docs/en/release-info/migration-guides/abp-11-0.md +++ b/docs/en/release-info/migration-guides/abp-11-0.md @@ -63,6 +63,31 @@ No action is required unless a handler of yours relies on receiving an event for Keep these applications on ABP v10.x until the provider ships an EF Core 11 version. +### Static Asset Compression Is Turned Off on .NET 11.0.1xx SDKs + +**Who is affected** + +- Applications whose Web SDK projects reference `Volo.Abp.AspNetCore` and are built with a .NET 11.0.1xx SDK. + +**What changed** + +- The .NET 11.0.1xx SDKs give the compressed copies of package static assets duplicate labels, so a Blazor application fails on startup when two packages have a static asset with the same path. `Volo.Abp.AspNetCore` sets `CompressionEnabled` to `false` in these projects, so build and publish no longer produce the `.gz` and `.br` copies of static assets. +- A Debug build of a Web SDK project also fails on these SDKs when it references a Web SDK class library. `Volo.Abp.AspNetCore` sets `EnableHotReloadInRuntimeConfigDevFile` to `false` in Web SDK class libraries in Debug builds. + +**What to do** + +No action is required. To keep static asset compression in a project that doesn't have the problem, set it explicitly: + +```xml + + true + +``` + +ABP will remove these settings once the SDK fixes the problems. + +> See [dotnet/sdk#56891](https://github.com/dotnet/sdk/issues/56891) and [dotnet/sdk#56656](https://github.com/dotnet/sdk/issues/56656) for details. + ### Polly Is No Longer Referenced **Who is affected** diff --git a/framework/src/Volo.Abp.AspNetCore/buildTransitive/Volo.Abp.AspNetCore.targets b/framework/src/Volo.Abp.AspNetCore/buildTransitive/Volo.Abp.AspNetCore.targets index ac2b3a951d..0be688b44e 100644 --- a/framework/src/Volo.Abp.AspNetCore/buildTransitive/Volo.Abp.AspNetCore.targets +++ b/framework/src/Volo.Abp.AspNetCore/buildTransitive/Volo.Abp.AspNetCore.targets @@ -1,14 +1,17 @@ - - + + false - - + + false diff --git a/global.json b/global.json index 390868cfce..e26c590b52 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "sdk": { - "version": "11.0.100-rc.3.26522.148", + "version": "11.0.100", "rollForward": "latestFeature" } }