From 8fb02b63c8664220787ab5678a5ccb0d14437720 Mon Sep 17 00:00:00 2001 From: bUnit bot Date: Thu, 8 Jan 2026 09:02:30 +0000 Subject: [PATCH 1/4] Set version to '2.6-preview' --- version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.json b/version.json index b2ebf4c3d..72ca331c1 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", - "version": "2.5-preview", + "version": "2.6-preview", "assemblyVersion": { "precision": "revision" }, From 7214c8eae4fd9fe50f87c170ca448180bf9f8d2a Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 16:46:16 +0000 Subject: [PATCH 2/4] build(deps): Bump dotnet/nbgv from 0.4.2 to 0.5.1 Bumps [dotnet/nbgv](https://github.com/dotnet/nbgv) from 0.4.2 to 0.5.1. - [Release notes](https://github.com/dotnet/nbgv/releases) - [Commits](https://github.com/dotnet/nbgv/compare/v0.4.2...v0.5.1) --- updated-dependencies: - dependency-name: dotnet/nbgv dependency-version: 0.5.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/ci.yml | 6 +++--- .github/workflows/docs-deploy.yml | 2 +- .github/workflows/prepare-release.yml | 4 ++-- .github/workflows/release.yml | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 41e987244..51ed0f386 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,7 +49,7 @@ jobs: 10.0.x - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 id: nbgv with: setAllVars: true @@ -167,7 +167,7 @@ jobs: path: ${{ env.NUGET_DIRECTORY }} - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 with: setAllVars: true @@ -224,7 +224,7 @@ jobs: 10.0.x - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 id: nbgv with: setAllVars: true diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index ce8f2a843..21ceea412 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -50,7 +50,7 @@ jobs: git config --global commit.gpgsign true - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 id: nbgv with: setAllVars: true diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index 55c2b4309..9f22471b8 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -34,7 +34,7 @@ jobs: path: ./CHANGELOG.md - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 id: nbgv with: setAllVars: true @@ -60,7 +60,7 @@ jobs: git config --global commit.gpgsign true - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 with: setAllVars: true diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 165efa684..3a5447487 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -54,7 +54,7 @@ jobs: git config --global commit.gpgsign true - name: ⚙️ Setup GIT versioning - uses: dotnet/nbgv@v0.4.2 + uses: dotnet/nbgv@v0.5.1 id: nbgv with: setAllVars: true From 44b8ff85ba161ec935cab66176d2bf0f370e0761 Mon Sep 17 00:00:00 2001 From: Steven Giesel Date: Fri, 20 Feb 2026 09:42:25 +0100 Subject: [PATCH 3/4] feat: Make net11 available --- .editorconfig | 1 + .github/workflows/ci.yml | 5 ++++- .github/workflows/docs-deploy.yml | 1 + .github/workflows/release.yml | 1 + CHANGELOG.md | 4 +++- Directory.Packages.props | 15 +++++++++++++++ docs/samples/components/bunit.docs.samples.csproj | 2 +- docs/samples/tests/Directory.Build.props | 2 +- .../template/.template.config/template.json | 12 +++++++++++- src/bunit.web.query/bunit.web.query.csproj | 2 +- .../Authorization/BunitAuthorizationExtensions.cs | 2 ++ .../BunitSignOutSessionStateManager.cs | 4 +++- src/bunit/bunit.csproj | 2 +- .../bunit.generators.tests.csproj | 2 +- .../BlazorE2E/ElementRefComponent.razor | 2 +- tests/bunit.testassets/bunit.testassets.csproj | 6 +++++- .../BunitSignOutSessionStateManagerTest.cs | 2 ++ tests/bunit.tests/bunit.tests.csproj | 2 +- .../bunit.web.query.tests.csproj | 2 +- 19 files changed, 56 insertions(+), 13 deletions(-) diff --git a/.editorconfig b/.editorconfig index bc2d6e84a..cfdab13ec 100644 --- a/.editorconfig +++ b/.editorconfig @@ -466,6 +466,7 @@ dotnet_diagnostic.BL0004.severity = none dotnet_diagnostic.BL0005.severity = none dotnet_diagnostic.BL0006.severity = none dotnet_diagnostic.BL0007.severity = none +dotnet_diagnostic.BL0010.severity = none ########################################## # Custom Test Code Analyzers Rules diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51ed0f386..dddd023ad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,6 +47,7 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.5.1 @@ -128,6 +129,7 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x - name: ⚙️ Restore packages and tools run: | @@ -159,7 +161,7 @@ jobs: uses: actions/setup-dotnet@v5 with: dotnet-version: | - 9.0.x + 10.0.x - uses: actions/download-artifact@v7 with: @@ -222,6 +224,7 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x - name: ⚙️ Setup GIT versioning uses: dotnet/nbgv@v0.5.1 diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml index 21ceea412..b12424a89 100644 --- a/.github/workflows/docs-deploy.yml +++ b/.github/workflows/docs-deploy.yml @@ -76,6 +76,7 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x - name: 🎨 Setup color run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a5447487..a51e8bffa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,6 +66,7 @@ jobs: 8.0.x 9.0.x 10.0.x + 11.0.x - name: 🛠️ Update changelog uses: thomaseizinger/keep-a-changelog-new-release@3.1.0 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e32dedf7..3250b5f6d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ All notable changes to **bUnit** will be documented in this file. The project ad ## [Unreleased] -## [2.5.3] - 2026-01-21 +### Added + +- net11.0 support ## [2.5.3] - 2026-01-08 diff --git a/Directory.Packages.props b/Directory.Packages.props index bf8561613..720f03d11 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -71,6 +71,21 @@ + + + + + + + + + + + + + + + diff --git a/docs/samples/components/bunit.docs.samples.csproj b/docs/samples/components/bunit.docs.samples.csproj index 8d0c766a6..88949209f 100644 --- a/docs/samples/components/bunit.docs.samples.csproj +++ b/docs/samples/components/bunit.docs.samples.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit.Docs.Samples enable CA1014,NU5104 diff --git a/docs/samples/tests/Directory.Build.props b/docs/samples/tests/Directory.Build.props index 487c917d1..8071ce9d1 100644 --- a/docs/samples/tests/Directory.Build.props +++ b/docs/samples/tests/Directory.Build.props @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 false true false diff --git a/src/bunit.template/template/.template.config/template.json b/src/bunit.template/template/.template.config/template.json index 81e3820c6..90eab74ea 100644 --- a/src/bunit.template/template/.template.config/template.json +++ b/src/bunit.template/template/.template.config/template.json @@ -91,7 +91,7 @@ "description": "The target framework sdk for the project.", "displayName": "Target framework sdk", "datatype": "choice", - "defaultValue": "net9.0", + "defaultValue": "net10.0", "replaces": "targetSdk", "choices": [ { @@ -103,6 +103,16 @@ "choice": "net9.0", "description": ".net 9.0", "displayName": ".net 9.0" + }, + { + "choice": "net10.0", + "description": ".net 10.0", + "displayName": ".net 10.0" + }, + { + "choice": "net11.0", + "description": ".net 11.0", + "displayName": ".net 11.0" } ] } diff --git a/src/bunit.web.query/bunit.web.query.csproj b/src/bunit.web.query/bunit.web.query.csproj index d684833d3..c0e9bc642 100644 --- a/src/bunit.web.query/bunit.web.query.csproj +++ b/src/bunit.web.query/bunit.web.query.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit Bunit.Web.Query diff --git a/src/bunit/TestDoubles/Authorization/BunitAuthorizationExtensions.cs b/src/bunit/TestDoubles/Authorization/BunitAuthorizationExtensions.cs index 3bf3677f1..8fad2d81d 100644 --- a/src/bunit/TestDoubles/Authorization/BunitAuthorizationExtensions.cs +++ b/src/bunit/TestDoubles/Authorization/BunitAuthorizationExtensions.cs @@ -15,10 +15,12 @@ public partial class BunitContext public BunitAuthorizationContext AddAuthorization() { Services.AddCascadingAuthenticationState(); +#if !NET11_0_OR_GREATER Services.AddSingleton(); #pragma warning disable CS0618 Services.AddSingleton(s => s.GetRequiredService()); #pragma warning restore CS0618 +#endif var authCtx = new BunitAuthorizationContext(Services); return authCtx; } diff --git a/src/bunit/TestDoubles/NavigationManager/BunitSignOutSessionStateManager.cs b/src/bunit/TestDoubles/NavigationManager/BunitSignOutSessionStateManager.cs index b84699201..af6d78ecf 100644 --- a/src/bunit/TestDoubles/NavigationManager/BunitSignOutSessionStateManager.cs +++ b/src/bunit/TestDoubles/NavigationManager/BunitSignOutSessionStateManager.cs @@ -1,4 +1,5 @@ -using Microsoft.AspNetCore.Components.WebAssembly.Authentication; +#if !NET11_0_OR_GREATER +using Microsoft.AspNetCore.Components.WebAssembly.Authentication; namespace Bunit.TestDoubles; @@ -38,3 +39,4 @@ public override Task ValidateSignOutState() return Task.FromResult(wasSignedOut); } } +#endif diff --git a/src/bunit/bunit.csproj b/src/bunit/bunit.csproj index 3a5511a05..8712df6b9 100644 --- a/src/bunit/bunit.csproj +++ b/src/bunit/bunit.csproj @@ -1,6 +1,6 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit diff --git a/tests/bunit.generators.tests/bunit.generators.tests.csproj b/tests/bunit.generators.tests/bunit.generators.tests.csproj index a59629e50..28d889510 100644 --- a/tests/bunit.generators.tests/bunit.generators.tests.csproj +++ b/tests/bunit.generators.tests/bunit.generators.tests.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit Bunit.Generator.Tests true diff --git a/tests/bunit.testassets/BlazorE2E/ElementRefComponent.razor b/tests/bunit.testassets/BlazorE2E/ElementRefComponent.razor index 5a2316837..b3f52d69d 100644 --- a/tests/bunit.testassets/BlazorE2E/ElementRefComponent.razor +++ b/tests/bunit.testassets/BlazorE2E/ElementRefComponent.razor @@ -31,6 +31,6 @@ async Task MakeInteropCall() { - await JSRuntime.InvokeAsync("setElementValue", _myInput, $"Clicks: {++_count}"); + await JSRuntime.InvokeVoidAsync("setElementValue", _myInput, $"Clicks: {++_count}"); } } diff --git a/tests/bunit.testassets/bunit.testassets.csproj b/tests/bunit.testassets/bunit.testassets.csproj index 96fe12aa6..305d09964 100644 --- a/tests/bunit.testassets/bunit.testassets.csproj +++ b/tests/bunit.testassets/bunit.testassets.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit.TestAssets Bunit.TestAssets Library @@ -25,4 +25,8 @@ + + + + \ No newline at end of file diff --git a/tests/bunit.tests/TestDoubles/BunitSignOutSessionStateManagerTest.cs b/tests/bunit.tests/TestDoubles/BunitSignOutSessionStateManagerTest.cs index 0460d7a75..03a40bf7a 100644 --- a/tests/bunit.tests/TestDoubles/BunitSignOutSessionStateManagerTest.cs +++ b/tests/bunit.tests/TestDoubles/BunitSignOutSessionStateManagerTest.cs @@ -1,3 +1,4 @@ +#if !NET11_0_OR_GREATER namespace Bunit.TestDoubles; public class BunitSignOutSessionStateManagerTest : BunitContext @@ -27,3 +28,4 @@ public async Task ShouldReturnSignOutStateOnValidateSignOutState() cut.IsSignedOut.ShouldBeFalse(); } } +#endif \ No newline at end of file diff --git a/tests/bunit.tests/bunit.tests.csproj b/tests/bunit.tests/bunit.tests.csproj index 45f6e8727..638453b1a 100644 --- a/tests/bunit.tests/bunit.tests.csproj +++ b/tests/bunit.tests/bunit.tests.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit Bunit.Tests diff --git a/tests/bunit.web.query.tests/bunit.web.query.tests.csproj b/tests/bunit.web.query.tests/bunit.web.query.tests.csproj index 0c625097d..dc2b89628 100644 --- a/tests/bunit.web.query.tests/bunit.web.query.tests.csproj +++ b/tests/bunit.web.query.tests/bunit.web.query.tests.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net8.0;net9.0;net10.0;net11.0 Bunit Bunit.Web.Query.Tests From 46cdb968b32d5e20ce4265fc98ccb86f2fbb9fa8 Mon Sep 17 00:00:00 2001 From: bUnit bot Date: Fri, 27 Feb 2026 14:31:13 +0000 Subject: [PATCH 4/4] Set version to '2.6' --- version.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.json b/version.json index 72ca331c1..6dcb543f4 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", - "version": "2.6-preview", + "version": "2.6", "assemblyVersion": { "precision": "revision" },