Repository navigation
Bump WindowsAppSDK to 2.0.0-preview2 - #67
Merged
Chris Anderson (codemonkeychris) merged 2 commits intoApr 22, 2026
Merged
Conversation
Preview2 replaces the experimental `ElementFactory` abstract base with an `IElementFactory` interface. Migrate the library's ItemsRepeater bridge and the two InteractivePool perf benches: switch `ElementFactory` → `IElementFactory`, rename `GetElementCore`/`RecycleElementCore` overrides to public `GetElement`/`RecycleElement` interface methods, and drop the `CS8305` experimental-API suppressions that are no longer needed. Bump the version pin from `2.0.0-experimental6` to `2.0.0-preview2` in `Directory.Build.props` (the single source of truth) and update the embedded version strings in docs, the CLI scaffold template, and the lone sample that was hard-coding the version instead of using `$(WindowsAppSDKVersion)`. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repo’s Windows App SDK dependency to 2.0.0-preview2 and migrates Reactor’s ItemsRepeater bridge to the new IElementFactory-based API, while refreshing version references in docs/samples/templates.
Changes:
- Bump centralized
WindowsAppSDKVersionto2.0.0-preview2. - Migrate ItemsRepeater integration from the experimental
ElementFactorybase class toIElementFactory(core library + perf benches). - Refresh hard-coded Windows App SDK version strings in docs/samples and align ReactorGallery to use
$(WindowsAppSDKVersion).
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/perf_bench/PerfBench.InteractivePool/InteractivePool.Direct/MainWindow.cs | Updates benchmark’s ItemsRepeater factory to implement IElementFactory. |
| tests/perf_bench/PerfBench.InteractivePool/InteractivePool.Bound/MainWindow.cs | Updates benchmark’s ItemsRepeater factory to implement IElementFactory. |
| src/Reactor/Core/Reconciler.Update.cs | Switches ItemTemplate pattern-match to IElementFactory for in-place factory updates. |
| src/Reactor/Core/ElementFactory.cs | Migrates Reactor’s factory implementation to IElementFactory.GetElement/RecycleElement. |
| src/Reactor/Core/Element.cs | Updates lazy stack virtualized element plumbing to create/update/refresh via IElementFactory. |
| src/Reactor.Cli/Program.cs | Updates scaffolded project template to reference 2.0.0-preview2. |
| samples/WinFormsInterop/README.md | Updates sample documentation to 2.0.0-preview2. |
| samples/ReactorGallery/ReactorGallery.csproj | Stops hardcoding WASDK version; uses $(WindowsAppSDKVersion). |
| docs/specs/022-packaging-and-distribution.md | Refreshes pinned WASDK version in the packaging/distribution spec. |
| SKILL.md | Updates inline package references to 2.0.0-preview2. |
| README.md | Updates prerequisites and sample csproj snippet to 2.0.0-preview2. |
| Directory.Build.props | Central version bump to 2.0.0-preview2. |
| CONTRIBUTING.md | Updates prerequisites/version text to 2.0.0-preview2. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Chris Anderson (codemonkeychris)
deleted the
deps/winappsdk-2.0.0-preview2
branch
April 22, 2026 19:07
Chris Anderson (codemonkeychris)
restored the
deps/winappsdk-2.0.0-preview2
branch
April 22, 2026 19:08
Chris Anderson (codemonkeychris)
deleted the
deps/winappsdk-2.0.0-preview2
branch
April 22, 2026 19:09
This was referenced Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WindowsAppSDKpin from2.0.0-experimental6to2.0.0-preview2inDirectory.Build.props(the single source of truth).IElementFactoryinterface — preview2 replaces the experimental abstractElementFactorybase with an interface, so the library'sItemsRepeaterbridge inElementFactory<T>, theLazyStackElementvirtual shape inElement.cs, the pattern match inReconciler.Update.cs, and the two InteractivePool perf benches all switch toIElementFactorywith publicGetElement/RecycleElementmethods. All#pragma warning disable CS8305suppressions drop.README.md,CONTRIBUTING.md,SKILL.md,docs/specs/022-packaging-and-distribution.md,samples/WinFormsInterop/README.md, the CLI scaffold template insrc/Reactor.Cli/Program.cs, andsamples/ReactorGallery/ReactorGallery.csproj(which was hard-coding the version — now uses$(WindowsAppSDKVersion)).Test plan
dotnet build Reactor.sln -p:Platform=ARM64— 0 errorsdotnet test tests/Reactor.Tests— 6518 passed / 0 failed / 46 skippeddotnet test tests/Reactor.SelfTests— 535 passed / 0 faileddotnet test tests/Reactor.AppTests— 53 passed + 1 flaky (DragDrop_TypedReorder_MovesCardSelenium 6s timeout, passes on retry — pre-existing flake, not a regression)samples/Reactor.TestApp— window visible, interactive🤖 Generated with Claude Code