From 8504ce3cab609640c9318795e90f5dab227c9e15 Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:29:17 +0900 Subject: [PATCH 1/8] Add .NET 11 targets and retire .NET 8 and 9 target legs Retain .NET 10, .NET Standard 2.0 and .NET Framework 4.7.2 assets. Exercise the supported runtimes in all automated test projects. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Directory.Packages.props | 10 +++------- .../ReactivePropertySamples.R3.Shared.csproj | 2 +- .../ReactivePropertySamples.R3.Tests.csproj | 2 +- .../ReactiveProperty.Core/ReactiveProperty.Core.csproj | 2 +- .../ReactiveProperty.NETStandard.csproj | 2 +- .../ReactiveProperty.Platform.Blazor.csproj | 2 +- .../ReactiveProperty.Platform.WPF.csproj | 2 +- .../ReactiveProperty.R3.WPF.csproj | 2 +- Source/ReactiveProperty.R3/ReactiveProperty.R3.csproj | 2 +- .../ReactiveProperty.Blazor.Tests.csproj | 2 +- .../ReactiveProperty.NETStandard.Tests.csproj | 2 +- .../ReactiveProperty.R3.Tests.csproj | 2 +- .../ReactiveProperty.R3.WPF.Tests.csproj | 2 +- .../ReactiveProperty.WPF.ManualTests.csproj | 2 +- .../ReactiveProperty.WPF.Tests.csproj | 2 +- 15 files changed, 17 insertions(+), 21 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 8d3de3a0..f02827d4 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -10,14 +10,9 @@ - - - - + - - @@ -28,7 +23,8 @@ - + + diff --git a/Samples/ReactivePropertySamples.R3.Shared/ReactivePropertySamples.R3.Shared.csproj b/Samples/ReactivePropertySamples.R3.Shared/ReactivePropertySamples.R3.Shared.csproj index 5d33163f..6bb5a183 100644 --- a/Samples/ReactivePropertySamples.R3.Shared/ReactivePropertySamples.R3.Shared.csproj +++ b/Samples/ReactivePropertySamples.R3.Shared/ReactivePropertySamples.R3.Shared.csproj @@ -1,7 +1,7 @@  - netstandard2.0;net8.0;net9.0;net10.0 + netstandard2.0;net10.0;net11.0 ReactivePropertySamples.Migrated latest diff --git a/Samples/ReactivePropertySamples.R3.Tests/ReactivePropertySamples.R3.Tests.csproj b/Samples/ReactivePropertySamples.R3.Tests/ReactivePropertySamples.R3.Tests.csproj index b5389bfe..92684366 100644 --- a/Samples/ReactivePropertySamples.R3.Tests/ReactivePropertySamples.R3.Tests.csproj +++ b/Samples/ReactivePropertySamples.R3.Tests/ReactivePropertySamples.R3.Tests.csproj @@ -1,7 +1,7 @@  - net10.0 + net10.0;net11.0 ReactivePropertySamples.R3.Tests latest enable diff --git a/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj b/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj index d1a24f32..861ae21e 100644 --- a/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj +++ b/Source/ReactiveProperty.Core/ReactiveProperty.Core.csproj @@ -2,7 +2,7 @@ ReactiveProperty.Core - netstandard2.0;net8.0;net9.0;net10.0;net472 + netstandard2.0;net10.0;net11.0;net472 ReactiveProperty.Core true key.snk diff --git a/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj b/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj index a536fd0c..9384c837 100644 --- a/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj +++ b/Source/ReactiveProperty.NETStandard/ReactiveProperty.NETStandard.csproj @@ -2,7 +2,7 @@ ReactiveProperty - netstandard2.0;net8.0;net9.0;net10.0;net472 + netstandard2.0;net10.0;net11.0;net472 ReactiveProperty true key.snk diff --git a/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj b/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj index 65cb1fa8..de09cff0 100644 --- a/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj +++ b/Source/ReactiveProperty.Platform.Blazor/ReactiveProperty.Platform.Blazor.csproj @@ -1,7 +1,7 @@ - net8.0;net9.0;net10.0 + net10.0;net11.0 enable enable ReactiveProperty.Blazor diff --git a/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj b/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj index 8333f29b..f1a8ab17 100644 --- a/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj +++ b/Source/ReactiveProperty.Platform.WPF/ReactiveProperty.Platform.WPF.csproj @@ -1,7 +1,7 @@  - net8.0-windows;net9.0-windows;net10.0-windows;net472 + net10.0-windows;net11.0-windows;net472 ReactiveProperty.WPF true true diff --git a/Source/ReactiveProperty.R3.WPF/ReactiveProperty.R3.WPF.csproj b/Source/ReactiveProperty.R3.WPF/ReactiveProperty.R3.WPF.csproj index fc675c08..27f61a72 100644 --- a/Source/ReactiveProperty.R3.WPF/ReactiveProperty.R3.WPF.csproj +++ b/Source/ReactiveProperty.R3.WPF/ReactiveProperty.R3.WPF.csproj @@ -4,7 +4,7 @@ ReactiveProperty.R3.WPF Reactive.Bindings.R3 ReactiveProperty.R3.WPF - net8.0-windows;net9.0-windows;net10.0-windows + net10.0-windows;net11.0-windows true true ..\ReactiveProperty.Core\key.snk diff --git a/Source/ReactiveProperty.R3/ReactiveProperty.R3.csproj b/Source/ReactiveProperty.R3/ReactiveProperty.R3.csproj index 8f8cc792..cd87a9fb 100644 --- a/Source/ReactiveProperty.R3/ReactiveProperty.R3.csproj +++ b/Source/ReactiveProperty.R3/ReactiveProperty.R3.csproj @@ -3,7 +3,7 @@ ReactiveProperty.R3 Reactive.Bindings.R3 - netstandard2.0;net8.0;net9.0;net10.0 + netstandard2.0;net10.0;net11.0 ReactiveProperty.R3 true ..\ReactiveProperty.Core\key.snk diff --git a/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj b/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj index 9542cca4..86d8839b 100644 --- a/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj +++ b/Test/ReactiveProperty.Blazor.Tests/ReactiveProperty.Blazor.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0;net11.0 enable true false diff --git a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj index 68e42216..e600d15f 100644 --- a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj +++ b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0;net11.0 ReactiveProperty.Tests ReactiveProperty.Tests true diff --git a/Test/ReactiveProperty.R3.Tests/ReactiveProperty.R3.Tests.csproj b/Test/ReactiveProperty.R3.Tests/ReactiveProperty.R3.Tests.csproj index 6907cd0f..67db1fd2 100644 --- a/Test/ReactiveProperty.R3.Tests/ReactiveProperty.R3.Tests.csproj +++ b/Test/ReactiveProperty.R3.Tests/ReactiveProperty.R3.Tests.csproj @@ -1,7 +1,7 @@  - net10.0 + net10.0;net11.0 ReactiveProperty.Tests true false diff --git a/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj b/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj index eb745e2e..91cd4144 100644 --- a/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj +++ b/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj @@ -1,7 +1,7 @@  - net9.0-windows + net10.0-windows;net11.0-windows false true ReactiveProperty.R3.Tests diff --git a/Test/ReactiveProperty.WPF.ManualTests/ReactiveProperty.WPF.ManualTests.csproj b/Test/ReactiveProperty.WPF.ManualTests/ReactiveProperty.WPF.ManualTests.csproj index a3ed18f6..5852d2c0 100644 --- a/Test/ReactiveProperty.WPF.ManualTests/ReactiveProperty.WPF.ManualTests.csproj +++ b/Test/ReactiveProperty.WPF.ManualTests/ReactiveProperty.WPF.ManualTests.csproj @@ -2,7 +2,7 @@ WinExe - net9.0-windows + net10.0-windows enable true diff --git a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj index 7a95ce20..c304bb36 100644 --- a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj +++ b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj @@ -1,7 +1,7 @@  - net9.0-windows + net10.0-windows;net11.0-windows false true ReactiveProperty.Tests From f1fcf1a23786d9158bbdfa262b9a3780011b0a2d Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:32:50 +0900 Subject: [PATCH 2/8] Remove redundant Microsoft.CSharp references from modern WPF tests Resolve NU1510 introduced by moving the test projects to .NET 10 and 11. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- Directory.Packages.props | 1 - .../ReactiveProperty.R3.WPF.Tests.csproj | 1 - .../ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj | 1 - 3 files changed, 3 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index f02827d4..033de842 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -22,7 +22,6 @@ - diff --git a/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj b/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj index 91cd4144..ecef0abf 100644 --- a/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj +++ b/Test/ReactiveProperty.R3.WPF.Tests/ReactiveProperty.R3.WPF.Tests.csproj @@ -9,7 +9,6 @@ - diff --git a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj index c304bb36..c164f793 100644 --- a/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj +++ b/Test/ReactiveProperty.WPF.Tests/ReactiveProperty.WPF.Tests.csproj @@ -10,7 +10,6 @@ - From 2139ed6f6e8abab16bb8d858f9aa8c24ea6ec5ef Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 14:34:55 +0900 Subject: [PATCH 3/8] Serialize core test runtimes to avoid large-collection timeout contention Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../ReactiveProperty.NETStandard.Tests.csproj | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj index e600d15f..b73460a9 100644 --- a/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj +++ b/Test/ReactiveProperty.NETStandard.Tests/ReactiveProperty.NETStandard.Tests.csproj @@ -2,6 +2,8 @@ net10.0;net11.0 + + false ReactiveProperty.Tests ReactiveProperty.Tests true From 8f783b3aeb39bd423a3b55c7e67c54be9e29a0e2 Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:00:43 +0900 Subject: [PATCH 4/8] Align CI and package guidance with .NET 10 and 11 support Use the .NET 11 SDK, retain both runtime test legs and compatibility builds, document the approved framework policy in ADR 0007, and leave all platform removal to #571. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../releasing-reactiveproperty/SKILL.md | 2 +- .devcontainer/Dockerfile | 9 ++- .devcontainer/devcontainer.json | 5 +- .github/skills/dotnet10-features/SKILL.md | 34 ++++++----- .github/workflows/build-and-publish.yml | 8 ++- .../workflows/dotnet-core-unit-testing.yml | 14 +++-- .github/workflows/samples-r3-tests.yml | 6 +- AGENTS.md | 19 ++++-- README-ja.md | 3 + README.md | 12 ++-- ...-and-retire-dotnet8-and-dotnet9-targets.md | 59 +++++++++++++++++++ dev-docs/adr/README.md | 1 + docs/docs-ja/README.md | 13 ++-- docs/docs-ja/getting-started/wpf.md | 2 +- docs/docs/README.md | 11 ++-- docs/docs/getting-started/wpf.md | 2 +- 16 files changed, 145 insertions(+), 55 deletions(-) create mode 100644 dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md diff --git a/.agents/skills/releasing-reactiveproperty/SKILL.md b/.agents/skills/releasing-reactiveproperty/SKILL.md index 76ac969c..0651698b 100644 --- a/.agents/skills/releasing-reactiveproperty/SKILL.md +++ b/.agents/skills/releasing-reactiveproperty/SKILL.md @@ -12,7 +12,7 @@ Run the tag-driven release procedure for the ReactiveProperty NuGet package set. - **Repository access**: permission to push tags to `runceel/ReactiveProperty`. - **GitHub CLI**: authenticated with access to Actions and Releases (`gh auth status`). - **NuGet trusted publishing**: `.github/workflows/build-and-publish.yml` uses `NuGet/login@v1` and `secrets.NUGET_USER`; if this setup is broken or missing, use the `nuget-trusted-publishing` skill instead. -- **Local validation environment**: Windows with the .NET 10 SDK (`10.0.x`) when running the full solution locally. +- **Local validation environment**: Windows with the .NET 11 SDK (`11.0.x`) and .NET 10/11 runtimes when running the full solution locally. ## Critical Rules diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index cb35b4b1..d68b4063 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,6 +1,9 @@ -# [Choice] .NET version: 5.0, 3.1, 2.1 -ARG VARIANT="6.0" -FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}-focal +# The Linux container supports platform-independent projects; WPF needs Windows. +ARG VARIANT="11.0" +FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble AS runtime10 +FROM mcr.microsoft.com/dotnet/sdk:${VARIANT}-noble + +COPY --from=runtime10 /usr/share/dotnet/shared/ /usr/share/dotnet/shared/ # Copy library scripts to execute COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/ diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 20bce4c0..b878f634 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -3,9 +3,8 @@ "build": { "dockerfile": "Dockerfile", "args": { - // Update 'VARIANT' to pick a .NET Core version. Rebuild the container if - // it already exists to update. Example variants: 2.1-bionic, 3.1-bionic - "VARIANT": "6.0", + // Rebuild the container after changing the SDK version. + "VARIANT": "11.0", // Options "INSTALL_NODE": "true", "NODE_VERSION": "lts/*", diff --git a/.github/skills/dotnet10-features/SKILL.md b/.github/skills/dotnet10-features/SKILL.md index f6774834..d2e6cbcd 100644 --- a/.github/skills/dotnet10-features/SKILL.md +++ b/.github/skills/dotnet10-features/SKILL.md @@ -17,31 +17,33 @@ feature may be unavailable in a given project: | Project | Target framework(s) | C# 14 available? | | --- | --- | --- | -| `ReactiveProperty.Core` | `netstandard2.0;net8.0;net9.0;net472` | Only if `LangVersion` is raised; runtime-dependent features stay off on `netstandard2.0`/`net472` | -| `ReactiveProperty` (main, `ReactiveProperty.NETStandard`) | `netstandard2.0;net8.0;net9.0;net472` | Same as above | -| `ReactiveProperty.Platform.WPF` | `net8.0-windows;net9.0-windows;net472` | Same as above | +| `ReactiveProperty.Core` | `netstandard2.0;net10.0;net11.0;net472` | Yes; runtime-dependent features stay off on `netstandard2.0`/`net472` | +| `ReactiveProperty` (main, `ReactiveProperty.NETStandard`) | `netstandard2.0;net10.0;net11.0;net472` | Same as above | +| `ReactiveProperty.Platform.WPF` | `net10.0-windows;net11.0-windows;net472` | Same as above | | `ReactiveProperty.Platform.UWP` | (UWP TFMs) | Same as above | -| `ReactiveProperty.Platform.Blazor` | `net8.0;net9.0;net10.0` | Yes on the `net10.0` leg | +| `ReactiveProperty.Platform.Blazor` | `net10.0;net11.0` | Yes | +| `ReactiveProperty.R3` | `netstandard2.0;net10.0;net11.0` | Yes; keep runtime-dependent features compatible with `netstandard2.0` | +| `ReactiveProperty.R3.WPF` | `net10.0-windows;net11.0-windows` | Yes | | `Samples/**`, Blazor samples | include `net10.0` | Yes | Key facts: -- `Source/Directory.Build.props` currently pins **`12.0`**, so the - library compiles as **C# 12** today. Adopting any C# 14 feature in the library requires - raising `LangVersion` (to `14` / `latest` / `preview`). -- `net10.0` is currently used only by **`ReactiveProperty.Platform.Blazor`** and the - **samples**. The core/main/WPF/UWP libraries do **not** target `net10.0`. +- `Source/Directory.Build.props` pins **`14.0`**, so the + library compiles as **C# 14**, including its .NET 11 targets. Do not raise the language + version merely to add a runtime target. +- All six packages in the main solution include **.NET 10 and .NET 11** targets; + WPF uses Windows-specific TFMs. The legacy project is unchanged by this migration. - The library is **multi-targeted down to `netstandard2.0` and `net472`**. C# 14 *language* features that the compiler can lower (e.g. `field`, extension members, null-conditional - assignment, partial members) work across all TFMs once `LangVersion` is raised, but + assignment, partial members) work across all TFMs with the current `LangVersion`, but features that depend on the **.NET 10 runtime/BCL** (e.g. first-class `Span` conversions that rely on new BCL APIs) will not light up on the older TFMs. Guard those with `#if NET10_0_OR_GREATER` when needed. -## How to enable C# 14 in a project here +## C# 14 configuration ```xml - + 14.0 ``` @@ -51,7 +53,7 @@ For runtime/BCL-gated features, multi-target and branch with the framework const #if NET10_0_OR_GREATER // .NET 10-only path #else - // fallback for net8.0 / net9.0 / netstandard2.0 / net472 + // fallback for netstandard2.0 / net472 #endif ``` @@ -154,7 +156,7 @@ overload resolution and generic inference for span-based, allocation-free code p only in hot paths (e.g. buffer/array handling inside operators). Caveat: the most useful conversions rely on **.NET 10 BCL** support, so gate span-optimized -paths with `#if NET10_0_OR_GREATER` and keep an allocating fallback for `net8.0`/`net9.0`/ +paths with `#if NET10_0_OR_GREATER` and keep an allocating fallback for `netstandard2.0`/`net472`. ### 5. Simple lambda parameters with modifiers — MEDIUM/LOW relevance @@ -219,8 +221,8 @@ When bumping the Blazor sample/template projects, also review the version-condit ## Adoption caveats (summary) -- The core libraries are **C# 12 today** (`LangVersion 12.0`) and do **not** target `net10.0`. - Raising `LangVersion` is required before any C# 14 syntax compiles. +- The core libraries use **C# 14** (`LangVersion 14.0`) and target both `net10.0` and + `net11.0` alongside their compatibility assets. - Multi-targeting to `netstandard2.0`/`net472` means **runtime/BCL-gated** features must be `#if NET10_0_OR_GREATER`-guarded; language-only features are fine across TFMs. - This is a published NuGet library — preserve existing public/extension API signatures for diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index cd7a6967..276a0b75 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -6,7 +6,7 @@ on: - 'v*' env: - DOTNET_VERSION: 10.0.x + DOTNET_VERSION: 11.0.x jobs: build: @@ -18,7 +18,9 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ env.DOTNET_VERSION }} + dotnet-version: | + 10.0.x + ${{ env.DOTNET_VERSION }} - name: Update version number shell: pwsh run: | @@ -36,7 +38,7 @@ jobs: - name: Build run: dotnet build ReactiveProperty.slnx -c Release --no-restore /p:ContinuousIntegrationBuild=True /p:EmbedUntrackedSources=True - name: Test - run: dotnet test ReactiveProperty.slnx --no-restore --verbosity normal + run: dotnet test ReactiveProperty.slnx -c Release --no-build --no-restore --verbosity normal - name: Copy package files run: | mkdir dist diff --git a/.github/workflows/dotnet-core-unit-testing.yml b/.github/workflows/dotnet-core-unit-testing.yml index 1697803f..35708014 100644 --- a/.github/workflows/dotnet-core-unit-testing.yml +++ b/.github/workflows/dotnet-core-unit-testing.yml @@ -5,7 +5,7 @@ on: branches: [ main ] env: - DOTNET_VERSION: 10.0.x + DOTNET_VERSION: 11.0.x jobs: build: @@ -14,11 +14,15 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Setup .NET Core + - name: Setup .NET SDKs and runtimes uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ env.DOTNET_VERSION }} + dotnet-version: | + 10.0.x + ${{ env.DOTNET_VERSION }} - name: Install dependencies run: dotnet restore ReactiveProperty.slnx - - name: Test - run: dotnet test ReactiveProperty.slnx --no-restore --verbosity normal \ No newline at end of file + - name: Build all package targets + run: dotnet build ReactiveProperty.slnx -c Release --no-restore + - name: Test .NET 10 and .NET 11 + run: dotnet test ReactiveProperty.slnx -c Release --no-build --no-restore --verbosity normal diff --git a/.github/workflows/samples-r3-tests.yml b/.github/workflows/samples-r3-tests.yml index 5fab853c..bd1c88d7 100644 --- a/.github/workflows/samples-r3-tests.yml +++ b/.github/workflows/samples-r3-tests.yml @@ -10,7 +10,7 @@ on: branches: [ main, feature/r3-migration-support ] env: - DOTNET_VERSION: 10.0.x + DOTNET_VERSION: 11.0.x jobs: test: @@ -22,6 +22,8 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: ${{ env.DOTNET_VERSION }} + dotnet-version: | + 10.0.x + ${{ env.DOTNET_VERSION }} - name: Test R3 migration sample run: dotnet test Samples/ReactivePropertySamples.R3.Tests/ReactivePropertySamples.R3.Tests.csproj --verbosity normal diff --git a/AGENTS.md b/AGENTS.md index 6eeb911d..84371f3c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -30,6 +30,8 @@ Source/ Library source (each folder is one package/assem ReactiveProperty.Platform.WPF/ pkg ReactiveProperty.WPF — EventToReactiveCommand/Property ReactiveProperty.Platform.UWP/ pkg ReactiveProperty.UWP (legacy, no longer supported) ReactiveProperty.Platform.Shared/ Shared project (.shproj/.projitems) imported by platform projects + ReactiveProperty.R3/ pkg ReactiveProperty.R3 — R3 migration bridge + ReactiveProperty.R3.WPF/ pkg ReactiveProperty.R3.WPF — R3 WPF trigger actions Test/ Unit tests (MSTest) ReactiveProperty.NETStandard.Tests/ Core/main library tests (namespace ReactiveProperty.Tests) ReactiveProperty.Blazor.Tests/ Blazor tests (bunit) @@ -49,8 +51,9 @@ ReactiveProperty-Samples.slnx Samples solution ## Build, test, and run -The project uses the **.NET 10 SDK** (`10.0.x`) and CI runs on **Windows** +The project uses the **.NET 11 SDK** (`11.0.x`) and CI runs on **Windows** (the WPF/UWP projects require Windows to build the full solution). +Install the .NET 10 and .NET 11 runtimes to run both automated test target legs. ```pwsh # Restore, build, and test the library + tests @@ -78,16 +81,20 @@ Package versions are managed centrally (`ManagePackageVersionsCentrally=true`). ### Target frameworks (don't change casually) | Project | TargetFramework(s) | |---|---| -| `ReactiveProperty.Core`, `ReactiveProperty.NETStandard` | `netstandard2.0;net8.0;net9.0;net472` | -| `ReactiveProperty.Platform.Blazor` | `net8.0;net9.0;net10.0` | -| `ReactiveProperty.Platform.WPF` | `net8.0-windows;net9.0-windows;net472` | -| `ReactiveProperty.NETStandard.Tests` | `net9.0` | +| `ReactiveProperty.Core`, `ReactiveProperty.NETStandard` | `netstandard2.0;net10.0;net11.0;net472` | +| `ReactiveProperty.Platform.Blazor` | `net10.0;net11.0` | +| `ReactiveProperty.Platform.WPF` | `net10.0-windows;net11.0-windows;net472` | +| `ReactiveProperty.R3` | `netstandard2.0;net10.0;net11.0` | +| `ReactiveProperty.R3.WPF` | `net10.0-windows;net11.0-windows` | +| Core/main, Blazor, and R3 automated tests | `net10.0;net11.0` | +| WPF and R3 WPF automated tests | `net10.0-windows;net11.0-windows` | +| WPF manual test app | `net10.0-windows` | Because of `netstandard2.0`/`net472`, keep core code compatible with older frameworks (avoid APIs that only exist on modern .NET unless guarded). ### Project settings (from `Source/Directory.Build.props`) -- `LangVersion` is **12.0**; `Nullable` is **enable** — keep new code null-annotated. +- `LangVersion` is **14.0**; `Nullable` is **enable** — keep new code null-annotated. - Assemblies are **strong-name signed** (`key.snk`); don't break signing. - XML documentation is generated (`GenerateDocumentationFile=true`) — public APIs need doc comments. - The package **version** is `` in `Source/Directory.Build.props` (do not hand-edit for releases; the tag workflow updates it). diff --git a/README-ja.md b/README-ja.md index da4f8113..ffc4d9ca 100644 --- a/README-ja.md +++ b/README-ja.md @@ -7,6 +7,9 @@ ReactiveProperty ReactivePropertyは、Reactive ExtensionsをMVVMパターンと非同期用に拡張したものです。 +コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2、.NET Standard 2.0 をターゲットにしています。 +プラットフォーム別の対象とパッケージの一覧は[日本語ドキュメント](docs/docs-ja/README.md#nuget-パッケージ)を参照してください。 + ## ReactivePropertyの機能 以下の記事を参照してください。 diff --git a/README.md b/README.md index 899284ec..0d4eebda 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # ReactiveProperty -ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. Target framework is .NET 8.0+, .NET Framework 4.7.2 and .NET Standard 2.0. +ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. ![](https://img.shields.io/nuget/v/ReactiveProperty.svg) ![](https://img.shields.io/nuget/dt/ReactiveProperty.svg) @@ -149,10 +149,12 @@ ReactiveProperty doesn't provide base class by ViewModel, which means that React |Package Id|Version and downloads|Description| |----|----|----| -|[ReactiveProperty](https://www.nuget.org/packages/ReactiveProperty/)|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|The package includes all core features.| -|[ReactiveProperty.Core](https://www.nuget.org/packages/ReactiveProperty.Core/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|The package includes minimum classes such as `ReactivePropertySlim` and `ReadOnlyReactivePropertySlim`. And this doesn't have any dependency even System.Reactive. If you don't need Rx features, then it fits.| -|[ReactiveProperty.WPF](https://www.nuget.org/packages/ReactiveProperty.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|The package includes EventToReactiveProperty and EventToReactiveCommand for WPF. This is for .NET 6 or later and .NET Framework 4.7.2 or later.| -|[ReactiveProperty.Blazor](https://www.nuget.org/packages/ReactiveProperty.Blazor/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Blazor.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Blazor.svg)|The package includes validation support for EditForm component of Blazor with ReactiveProperty validation feature for `InteractiveServer` render mode. This is for .NET 8.0 or later. | +|[ReactiveProperty](https://www.nuget.org/packages/ReactiveProperty/)|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|MVVM and asynchronous features built on System.Reactive. `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.Core](https://www.nuget.org/packages/ReactiveProperty.Core/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|Minimal types such as `ReactivePropertySlim` and `ReadOnlyReactivePropertySlim`, without a System.Reactive dependency. `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.WPF](https://www.nuget.org/packages/ReactiveProperty.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|WPF EventToReactiveProperty and EventToReactiveCommand behaviors. `net10.0-windows;net11.0-windows;net472`.| +|[ReactiveProperty.Blazor](https://www.nuget.org/packages/ReactiveProperty.Blazor/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Blazor.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Blazor.svg)|EditForm validation integration with ReactiveProperty for InteractiveServer render mode. `net10.0;net11.0`.| +|[ReactiveProperty.R3](https://www.nuget.org/packages/ReactiveProperty.R3/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.svg)|An R3-native migration bridge for existing ReactiveProperty ViewModels. `netstandard2.0;net10.0;net11.0`.| +|[ReactiveProperty.R3.WPF](https://www.nuget.org/packages/ReactiveProperty.R3.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.WPF.svg)|R3-native EventToReactiveProperty and EventToReactiveCommand trigger actions for WPF. `net10.0-windows;net11.0-windows`.| The following packages are no longer supported. diff --git a/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md b/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md new file mode 100644 index 00000000..7a761df9 --- /dev/null +++ b/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md @@ -0,0 +1,59 @@ +# 0007. Support .NET 11 and retire .NET 8 and .NET 9 target legs + +- **Status:** Accepted +- **Date:** 2026-11-17 +- **Deciders:** ReactiveProperty maintainers + +## Context + +The maintainer approved adding .NET 11 support and retiring the .NET 8 and .NET 9 +package target legs and test coverage in issue #570. Existing .NET Standard 2.0, +.NET Framework 4.7.2, and .NET 10 assets must remain available. Current contributor +and package guidance no longer matches the projects or the configured C# 14 compiler. + +## Decision + +We will ship explicit .NET 10 and .NET 11 targets in all six packages in the main +solution, retaining each package's existing .NET Standard 2.0 and .NET Framework +4.7.2 assets where present. WPF targets remain Windows-specific. We will not raise +`LangVersion` beyond C# 14 or change supported-platform runtime semantics. + +Automated library and R3 sample tests will run on .NET 10 and .NET 11. The core +test project will run its target frameworks serially: concurrent test hosts +reproducibly exceed the existing large-collection test timeouts. CI will install +both runtimes, use the .NET 11 SDK, build all package targets, and test the same +Release outputs. + +The migration assessment uses the migration skill's .NET 11 Preview 3 compiler, +core library, SDK/MSBuild, and ASP.NET Core references. The scanned code does not +use the affected compression/archive, pipe, calendar, cryptography, background +service, OpenAPI, EF Core, or Blazor Virtualize APIs. The new SDK's redundant +`Microsoft.CSharp` package warning is resolved in modern WPF test projects. + +Retired platform removal is a separate issue (#571), not part of this decision. +Historical release notes, accepted ADRs, and existing platform code and tutorials +remain unchanged here. + +### Alternatives considered + +- Keep all old framework legs: rejected after the maintainer explicitly approved + dropping the out-of-support .NET 8 and .NET 9 legs. +- Remove compatibility assets as well: rejected because preserving existing + .NET Standard and .NET Framework consumers is required. +- Combine platform removal with this migration: rejected in favor of a separate + issue and pull request. + +## Consequences + +Consumers receive native .NET 11 assets, and CI exercises both supported modern +runtimes without losing legacy compatibility builds. Existing .NET 8/9 consumers +must upgrade for a supported modern runtime; some may still resolve the retained +.NET Standard assets, but no dedicated .NET 8/9 binaries or tests are shipped. + +C# 14 and compatibility targets still constrain which BCL APIs can be used in +shared code. + +The supplied migration references cover changes through Preview 3 only, even +though validation uses the installed .NET 11.0.100 SDK. Passing builds and tests +cannot establish coverage of every later runtime change or external deployment's +hardware requirements. diff --git a/dev-docs/adr/README.md b/dev-docs/adr/README.md index 6d4f1937..5482e81e 100644 --- a/dev-docs/adr/README.md +++ b/dev-docs/adr/README.md @@ -40,3 +40,4 @@ Trivial, easily reversible choices (local refactors, naming) do not need an ADR. | [0004](./0004-reactiveproperty-r3-wpf-event-to-reactive.md) | Provide R3-targeting EventToReactive trigger actions in a new ReactiveProperty.R3.WPF package | Accepted | | [0005](./0005-remove-vuepress-plain-markdown-docs.md) | Remove VuePress; publish docs as plain Markdown on GitHub | Accepted | | [0006](./0006-upgrade-system-reactive-v7.md) | Upgrade the System.Reactive dependency to v7 | Accepted | +| [0007](./0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md) | Support .NET 11 and retire .NET 8 and .NET 9 target legs | Accepted | diff --git a/docs/docs-ja/README.md b/docs/docs-ja/README.md index ccb6a973..e87e2675 100644 --- a/docs/docs-ja/README.md +++ b/docs/docs-ja/README.md @@ -1,6 +1,6 @@ # ReactiveProperty とは -ReactiveProperty は Reactive Extensions 向けに MVVM と非同期処理を支援する機能を提供します。ターゲット フレームワークは .NET Standard 2.0 です。 +ReactiveProperty は Reactive Extensions 向けに MVVM と非同期処理を支援する機能を提供します。コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2、.NET Standard 2.0 をターゲットにしています。プラットフォーム別の対象は[パッケージ一覧](#nuget-パッケージ)を参照してください。 ![概要](../docs/images/rpsummary.png) @@ -152,9 +152,12 @@ ReactiveProperty は次のリンクから使い始めることができます。 |パッケージ ID|バージョンとダウンロード数|説明| |----|----|----| -|ReactiveProperty|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|すべてのコア機能が含まれ、ターゲット プラットフォームは .NET Standard 2.0 です。ほぼすべての状況に適しています。| -|ReactiveProperty.Core|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|`ReactivePropertySlim` や `ReadOnlyReactivePropertySlim` など、最小限のクラスが含まれます。System.Reactive にも依存しません。Rx 機能が不要な場合に適しています。| -|ReactiveProperty.WPF|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|WPF 向けの EventToReactiveProperty と EventToReactiveCommand が含まれます。.NET Core 3.0 以降および .NET Framework 4.7.2 以降向けです。| +|[ReactiveProperty](https://www.nuget.org/packages/ReactiveProperty/)|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|System.Reactive を使った MVVM と非同期処理の機能。 `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.Core](https://www.nuget.org/packages/ReactiveProperty.Core/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|`ReactivePropertySlim` や `ReadOnlyReactivePropertySlim` などの最小限の型。System.Reactive には依存しません。 `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.WPF](https://www.nuget.org/packages/ReactiveProperty.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|WPF 向けの EventToReactiveProperty と EventToReactiveCommand ビヘイビア。 `net10.0-windows;net11.0-windows;net472`.| +|[ReactiveProperty.Blazor](https://www.nuget.org/packages/ReactiveProperty.Blazor/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Blazor.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Blazor.svg)|InteractiveServer レンダー モードで ReactiveProperty の検証と EditForm を連携する機能。 `net10.0;net11.0`.| +|[ReactiveProperty.R3](https://www.nuget.org/packages/ReactiveProperty.R3/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.svg)|既存の ReactiveProperty ViewModel を R3 へ移行するためのブリッジ。 `netstandard2.0;net10.0;net11.0`.| +|[ReactiveProperty.R3.WPF](https://www.nuget.org/packages/ReactiveProperty.R3.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.WPF.svg)|R3 向けの WPF EventToReactiveProperty と EventToReactiveCommand トリガー アクション。 `net10.0-windows;net11.0-windows`.| |ReactiveProperty.UWP|![](https://img.shields.io/nuget/v/ReactiveProperty.UWP.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.UWP.svg)|UWP 向けの EventToReactiveProperty と EventToReactiveCommand が含まれます。| |ReactiveProperty.XamarinAndroid|![](https://img.shields.io/nuget/v/ReactiveProperty.XamarinAndroid.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.XamarinAndroid.svg)|Xamarin.Android ネイティブのイベントから IObservable インスタンスを作成するための多くの拡張メソッドが含まれます。| -|ReactiveProperty.XamariniOS|![](https://img.shields.io/nuget/v/ReactiveProperty.XamariniOS.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.XamariniOS.svg)|ReactiveProperty と ReactiveCommand を Xamarin.iOS ネイティブ コントロールにバインドするための多くの拡張メソッドが含まれます。| \ No newline at end of file +|ReactiveProperty.XamariniOS|![](https://img.shields.io/nuget/v/ReactiveProperty.XamariniOS.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.XamariniOS.svg)|ReactiveProperty と ReactiveCommand を Xamarin.iOS ネイティブ コントロールにバインドするための多くの拡張メソッドが含まれます。| diff --git a/docs/docs-ja/getting-started/wpf.md b/docs/docs-ja/getting-started/wpf.md index f53f45b6..b3b9473b 100644 --- a/docs/docs-ja/getting-started/wpf.md +++ b/docs/docs-ja/getting-started/wpf.md @@ -2,7 +2,7 @@ ## プロジェクトの作成 - WPF App (.NET Framework) プロジェクトを作成します。 - - .NET Framework 4.7.2 以降、または .NET Core 3.0 以降を使用する必要があります。 + - Windows 向けの .NET 10 または .NET 11、もしくは .NET Framework 4.7.2 を使用してください。 - NuGet から ReactiveProperty.WPF パッケージをインストールします。 ## コードの編集 diff --git a/docs/docs/README.md b/docs/docs/README.md index 8d3d3b7a..22343552 100644 --- a/docs/docs/README.md +++ b/docs/docs/README.md @@ -1,6 +1,6 @@ # What is ReactiveProperty -ReactiveProperty provides MVVM and asynchronous support features for Reactive Extensions. The target framework is .NET Standard 2.0. +ReactiveProperty provides MVVM and asynchronous support features for Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. ![Summary](./images/rpsummary.png) @@ -152,9 +152,12 @@ Learn the core features from the following links. |Package Id|Version and downloads|Description| |----|----|----| -|ReactiveProperty|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|The package includes all core features, and the target platform is .NET Standard 2.0. It fits almost all situations.| -|ReactiveProperty.Core|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|The package includes minimal classes such as `ReactivePropertySlim` and `ReadOnlyReactivePropertySlim`. It has no dependencies, not even System.Reactive. If you don't need Rx features, it fits.| -|ReactiveProperty.WPF|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|The package includes EventToReactiveProperty and EventToReactiveCommand for WPF. This is for .NET Core 3.0 or later and .NET Framework 4.7.2 or later.| +|[ReactiveProperty](https://www.nuget.org/packages/ReactiveProperty/)|![](https://img.shields.io/nuget/v/ReactiveProperty.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.svg)|MVVM and asynchronous features built on System.Reactive. `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.Core](https://www.nuget.org/packages/ReactiveProperty.Core/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Core.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Core.svg)|Minimal types such as `ReactivePropertySlim` and `ReadOnlyReactivePropertySlim`, without a System.Reactive dependency. `netstandard2.0;net10.0;net11.0;net472`.| +|[ReactiveProperty.WPF](https://www.nuget.org/packages/ReactiveProperty.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.WPF.svg)|WPF EventToReactiveProperty and EventToReactiveCommand behaviors. `net10.0-windows;net11.0-windows;net472`.| +|[ReactiveProperty.Blazor](https://www.nuget.org/packages/ReactiveProperty.Blazor/)|![](https://img.shields.io/nuget/v/ReactiveProperty.Blazor.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.Blazor.svg)|EditForm validation integration with ReactiveProperty for InteractiveServer render mode. `net10.0;net11.0`.| +|[ReactiveProperty.R3](https://www.nuget.org/packages/ReactiveProperty.R3/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.svg)|An R3-native migration bridge for existing ReactiveProperty ViewModels. `netstandard2.0;net10.0;net11.0`.| +|[ReactiveProperty.R3.WPF](https://www.nuget.org/packages/ReactiveProperty.R3.WPF/)|![](https://img.shields.io/nuget/v/ReactiveProperty.R3.WPF.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.R3.WPF.svg)|R3-native EventToReactiveProperty and EventToReactiveCommand trigger actions for WPF. `net10.0-windows;net11.0-windows`.| |ReactiveProperty.UWP|![](https://img.shields.io/nuget/v/ReactiveProperty.UWP.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.UWP.svg)|The package includes EventToReactiveProperty and EventToReactiveCommand for UWP.| |ReactiveProperty.XamarinAndroid|![](https://img.shields.io/nuget/v/ReactiveProperty.XamarinAndroid.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.XamarinAndroid.svg)|The package includes many extension methods to create IObservable instances from events for Xamarin.Android native.| |ReactiveProperty.XamariniOS|![](https://img.shields.io/nuget/v/ReactiveProperty.XamariniOS.svg)![](https://img.shields.io/nuget/dt/ReactiveProperty.XamariniOS.svg)|The package includes many extension methods to bind ReactiveProperty and ReactiveCommand to Xamarin.iOS native controls.| diff --git a/docs/docs/getting-started/wpf.md b/docs/docs/getting-started/wpf.md index 5ecfdab8..8f78152f 100644 --- a/docs/docs/getting-started/wpf.md +++ b/docs/docs/getting-started/wpf.md @@ -2,7 +2,7 @@ ## Create a project - Create a WPF App (.NET Framework) project. - - You must use .NET Framework 4.7.2 or later, or .NET Core 3.0 or later. + - Use .NET 10 or .NET 11 for Windows, or .NET Framework 4.7.2. - Install ReactiveProperty.WPF package from NuGet. ## Edit the code From fa4af02dbd93d133887f6ab3198669f56b61772a Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 15:09:58 +0900 Subject: [PATCH 5/8] Preserve the existing CI test configuration during framework migration Keep Release package builds while retaining the original default Debug tests. This avoids introducing an unrelated test configuration change; existing hard wall-clock performance tests remain unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/workflows/build-and-publish.yml | 2 +- .github/workflows/dotnet-core-unit-testing.yml | 2 +- ...support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 276a0b75..0ef18467 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -38,7 +38,7 @@ jobs: - name: Build run: dotnet build ReactiveProperty.slnx -c Release --no-restore /p:ContinuousIntegrationBuild=True /p:EmbedUntrackedSources=True - name: Test - run: dotnet test ReactiveProperty.slnx -c Release --no-build --no-restore --verbosity normal + run: dotnet test ReactiveProperty.slnx --no-restore --verbosity normal - name: Copy package files run: | mkdir dist diff --git a/.github/workflows/dotnet-core-unit-testing.yml b/.github/workflows/dotnet-core-unit-testing.yml index 35708014..e61b19f0 100644 --- a/.github/workflows/dotnet-core-unit-testing.yml +++ b/.github/workflows/dotnet-core-unit-testing.yml @@ -25,4 +25,4 @@ jobs: - name: Build all package targets run: dotnet build ReactiveProperty.slnx -c Release --no-restore - name: Test .NET 10 and .NET 11 - run: dotnet test ReactiveProperty.slnx -c Release --no-build --no-restore --verbosity normal + run: dotnet test ReactiveProperty.slnx --no-restore --verbosity normal diff --git a/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md b/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md index 7a761df9..cf9585fd 100644 --- a/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md +++ b/dev-docs/adr/0007-support-dotnet11-and-retire-dotnet8-and-dotnet9-targets.md @@ -21,8 +21,8 @@ solution, retaining each package's existing .NET Standard 2.0 and .NET Framework Automated library and R3 sample tests will run on .NET 10 and .NET 11. The core test project will run its target frameworks serially: concurrent test hosts reproducibly exceed the existing large-collection test timeouts. CI will install -both runtimes, use the .NET 11 SDK, build all package targets, and test the same -Release outputs. +both runtimes, use the .NET 11 SDK, build all package targets in Release, and +retain the existing default Debug configuration for automated tests. The migration assessment uses the migration skill's .NET 11 Preview 3 compiler, core library, SDK/MSBuild, and ASP.NET Core references. The scanned code does not From fc0781c3839fe26e43dd183d54c514eb3a498c28 Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:06:37 +0900 Subject: [PATCH 6/8] Exclude general .NET guidance skill changes from migration Restore dotnet10-features to the PR base as requested. Keep the repository-specific release prerequisites aligned with the required SDK. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .github/skills/dotnet10-features/SKILL.md | 34 +++++++++++------------ 1 file changed, 16 insertions(+), 18 deletions(-) diff --git a/.github/skills/dotnet10-features/SKILL.md b/.github/skills/dotnet10-features/SKILL.md index d2e6cbcd..f6774834 100644 --- a/.github/skills/dotnet10-features/SKILL.md +++ b/.github/skills/dotnet10-features/SKILL.md @@ -17,33 +17,31 @@ feature may be unavailable in a given project: | Project | Target framework(s) | C# 14 available? | | --- | --- | --- | -| `ReactiveProperty.Core` | `netstandard2.0;net10.0;net11.0;net472` | Yes; runtime-dependent features stay off on `netstandard2.0`/`net472` | -| `ReactiveProperty` (main, `ReactiveProperty.NETStandard`) | `netstandard2.0;net10.0;net11.0;net472` | Same as above | -| `ReactiveProperty.Platform.WPF` | `net10.0-windows;net11.0-windows;net472` | Same as above | +| `ReactiveProperty.Core` | `netstandard2.0;net8.0;net9.0;net472` | Only if `LangVersion` is raised; runtime-dependent features stay off on `netstandard2.0`/`net472` | +| `ReactiveProperty` (main, `ReactiveProperty.NETStandard`) | `netstandard2.0;net8.0;net9.0;net472` | Same as above | +| `ReactiveProperty.Platform.WPF` | `net8.0-windows;net9.0-windows;net472` | Same as above | | `ReactiveProperty.Platform.UWP` | (UWP TFMs) | Same as above | -| `ReactiveProperty.Platform.Blazor` | `net10.0;net11.0` | Yes | -| `ReactiveProperty.R3` | `netstandard2.0;net10.0;net11.0` | Yes; keep runtime-dependent features compatible with `netstandard2.0` | -| `ReactiveProperty.R3.WPF` | `net10.0-windows;net11.0-windows` | Yes | +| `ReactiveProperty.Platform.Blazor` | `net8.0;net9.0;net10.0` | Yes on the `net10.0` leg | | `Samples/**`, Blazor samples | include `net10.0` | Yes | Key facts: -- `Source/Directory.Build.props` pins **`14.0`**, so the - library compiles as **C# 14**, including its .NET 11 targets. Do not raise the language - version merely to add a runtime target. -- All six packages in the main solution include **.NET 10 and .NET 11** targets; - WPF uses Windows-specific TFMs. The legacy project is unchanged by this migration. +- `Source/Directory.Build.props` currently pins **`12.0`**, so the + library compiles as **C# 12** today. Adopting any C# 14 feature in the library requires + raising `LangVersion` (to `14` / `latest` / `preview`). +- `net10.0` is currently used only by **`ReactiveProperty.Platform.Blazor`** and the + **samples**. The core/main/WPF/UWP libraries do **not** target `net10.0`. - The library is **multi-targeted down to `netstandard2.0` and `net472`**. C# 14 *language* features that the compiler can lower (e.g. `field`, extension members, null-conditional - assignment, partial members) work across all TFMs with the current `LangVersion`, but + assignment, partial members) work across all TFMs once `LangVersion` is raised, but features that depend on the **.NET 10 runtime/BCL** (e.g. first-class `Span` conversions that rely on new BCL APIs) will not light up on the older TFMs. Guard those with `#if NET10_0_OR_GREATER` when needed. -## C# 14 configuration +## How to enable C# 14 in a project here ```xml - + 14.0 ``` @@ -53,7 +51,7 @@ For runtime/BCL-gated features, multi-target and branch with the framework const #if NET10_0_OR_GREATER // .NET 10-only path #else - // fallback for netstandard2.0 / net472 + // fallback for net8.0 / net9.0 / netstandard2.0 / net472 #endif ``` @@ -156,7 +154,7 @@ overload resolution and generic inference for span-based, allocation-free code p only in hot paths (e.g. buffer/array handling inside operators). Caveat: the most useful conversions rely on **.NET 10 BCL** support, so gate span-optimized -paths with `#if NET10_0_OR_GREATER` and keep an allocating fallback for +paths with `#if NET10_0_OR_GREATER` and keep an allocating fallback for `net8.0`/`net9.0`/ `netstandard2.0`/`net472`. ### 5. Simple lambda parameters with modifiers — MEDIUM/LOW relevance @@ -221,8 +219,8 @@ When bumping the Blazor sample/template projects, also review the version-condit ## Adoption caveats (summary) -- The core libraries use **C# 14** (`LangVersion 14.0`) and target both `net10.0` and - `net11.0` alongside their compatibility assets. +- The core libraries are **C# 12 today** (`LangVersion 12.0`) and do **not** target `net10.0`. + Raising `LangVersion` is required before any C# 14 syntax compiles. - Multi-targeting to `netstandard2.0`/`net472` means **runtime/BCL-gated** features must be `#if NET10_0_OR_GREATER`-guarded; language-only features are fine across TFMs. - This is a published NuGet library — preserve existing public/extension API signatures for From 2e73cc30bee993efa70c8f687d116275e3f9221b Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:10:10 +0900 Subject: [PATCH 7/8] Clarify support for .NET Framework 4.7.2 and later in WPF guides Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- docs/docs-ja/getting-started/wpf.md | 2 +- docs/docs/getting-started/wpf.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs-ja/getting-started/wpf.md b/docs/docs-ja/getting-started/wpf.md index b3b9473b..b86cb0ca 100644 --- a/docs/docs-ja/getting-started/wpf.md +++ b/docs/docs-ja/getting-started/wpf.md @@ -2,7 +2,7 @@ ## プロジェクトの作成 - WPF App (.NET Framework) プロジェクトを作成します。 - - Windows 向けの .NET 10 または .NET 11、もしくは .NET Framework 4.7.2 を使用してください。 + - Windows 向けの .NET 10 または .NET 11、もしくは .NET Framework 4.7.2 以降を使用してください。 - NuGet から ReactiveProperty.WPF パッケージをインストールします。 ## コードの編集 diff --git a/docs/docs/getting-started/wpf.md b/docs/docs/getting-started/wpf.md index 8f78152f..b17e53cf 100644 --- a/docs/docs/getting-started/wpf.md +++ b/docs/docs/getting-started/wpf.md @@ -2,7 +2,7 @@ ## Create a project - Create a WPF App (.NET Framework) project. - - Use .NET 10 or .NET 11 for Windows, or .NET Framework 4.7.2. + - Use .NET 10 or .NET 11 for Windows, or .NET Framework 4.7.2 or later. - Install ReactiveProperty.WPF package from NuGet. ## Edit the code From a14b6b45ce263a7f4ead6d62ce84ead3bbe6e709 Mon Sep 17 00:00:00 2001 From: Kazuki Ota <117221407+kaota_microsoft@users.noreply.github.com> Date: Tue, 17 Nov 2026 16:11:34 +0900 Subject: [PATCH 8/8] Clarify .NET Framework 4.7.2 or later support in package overviews Keep English and Japanese root and documentation introductions consistent, including compatibility with .NET Framework 4.8. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- README-ja.md | 2 +- README.md | 2 +- docs/docs-ja/README.md | 2 +- docs/docs/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README-ja.md b/README-ja.md index ffc4d9ca..914c0421 100644 --- a/README-ja.md +++ b/README-ja.md @@ -7,7 +7,7 @@ ReactiveProperty ReactivePropertyは、Reactive ExtensionsをMVVMパターンと非同期用に拡張したものです。 -コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2、.NET Standard 2.0 をターゲットにしています。 +コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2 以降、.NET Standard 2.0 をターゲットにしています。 プラットフォーム別の対象とパッケージの一覧は[日本語ドキュメント](docs/docs-ja/README.md#nuget-パッケージ)を参照してください。 ## ReactivePropertyの機能 diff --git a/README.md b/README.md index 0d4eebda..24ed0d55 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ # ReactiveProperty -ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. +ReactiveProperty provides MVVM and asynchronous support features under Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2 or later, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. ![](https://img.shields.io/nuget/v/ReactiveProperty.svg) ![](https://img.shields.io/nuget/dt/ReactiveProperty.svg) diff --git a/docs/docs-ja/README.md b/docs/docs-ja/README.md index e87e2675..fe9f693b 100644 --- a/docs/docs-ja/README.md +++ b/docs/docs-ja/README.md @@ -1,6 +1,6 @@ # ReactiveProperty とは -ReactiveProperty は Reactive Extensions 向けに MVVM と非同期処理を支援する機能を提供します。コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2、.NET Standard 2.0 をターゲットにしています。プラットフォーム別の対象は[パッケージ一覧](#nuget-パッケージ)を参照してください。 +ReactiveProperty は Reactive Extensions 向けに MVVM と非同期処理を支援する機能を提供します。コア パッケージは .NET 10、.NET 11、.NET Framework 4.7.2 以降、.NET Standard 2.0 をターゲットにしています。プラットフォーム別の対象は[パッケージ一覧](#nuget-パッケージ)を参照してください。 ![概要](../docs/images/rpsummary.png) diff --git a/docs/docs/README.md b/docs/docs/README.md index 22343552..2acf0069 100644 --- a/docs/docs/README.md +++ b/docs/docs/README.md @@ -1,6 +1,6 @@ # What is ReactiveProperty -ReactiveProperty provides MVVM and asynchronous support features for Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. +ReactiveProperty provides MVVM and asynchronous support features for Reactive Extensions. The core packages target .NET 10, .NET 11, .NET Framework 4.7.2 or later, and .NET Standard 2.0. See the [package overview](#nuget-packages) for platform-specific targets. ![Summary](./images/rpsummary.png)