Skip to content

Bump WindowsAppSDK to 2.0.0-preview2 - #67

Merged
Chris Anderson (codemonkeychris) merged 2 commits into
mainfrom
deps/winappsdk-2.0.0-preview2
Apr 22, 2026
Merged

Chris Anderson (codemonkeychris) merged 2 commits into
mainfrom
deps/winappsdk-2.0.0-preview2

Conversation

@codemonkeychris

Copy link
Copy Markdown
Collaborator

Summary

  • Bump WindowsAppSDK pin from 2.0.0-experimental6 to 2.0.0-preview2 in Directory.Build.props (the single source of truth).
  • Migrate to preview2's new IElementFactory interface — preview2 replaces the experimental abstract ElementFactory base with an interface, so the library's ItemsRepeater bridge in ElementFactory<T>, the LazyStackElement virtual shape in Element.cs, the pattern match in Reconciler.Update.cs, and the two InteractivePool perf benches all switch to IElementFactory with public GetElement/RecycleElement methods. All #pragma warning disable CS8305 suppressions drop.
  • Refresh version strings in docs/samples that pinned the version inline: README.md, CONTRIBUTING.md, SKILL.md, docs/specs/022-packaging-and-distribution.md, samples/WinFormsInterop/README.md, the CLI scaffold template in src/Reactor.Cli/Program.cs, and samples/ReactorGallery/ReactorGallery.csproj (which was hard-coding the version — now uses $(WindowsAppSDKVersion)).

Test plan

  • dotnet build Reactor.sln -p:Platform=ARM64 — 0 errors
  • dotnet test tests/Reactor.Tests — 6518 passed / 0 failed / 46 skipped
  • dotnet test tests/Reactor.SelfTests — 535 passed / 0 failed
  • dotnet test tests/Reactor.AppTests — 53 passed + 1 flaky (DragDrop_TypedReorder_MovesCard Selenium 6s timeout, passes on retry — pre-existing flake, not a regression)
  • Manual launch of samples/Reactor.TestApp — window visible, interactive

Note for reviewers: if you're hitting a 0xc0000602 fast-fail in new Window() after pulling this branch, blow away obj/ and bin/ across the solution first. Incremental builds from an experimental6 tree can leave stale artifacts that surface as a Window activation fast-fail under preview2.

🤖 Generated with Claude Code

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>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 WindowsAppSDKVersion to 2.0.0-preview2.
  • Migrate ItemsRepeater integration from the experimental ElementFactory base class to IElementFactory (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.

Comment thread src/Reactor/Core/Reconciler.Update.cs Resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@codemonkeychris
Chris Anderson (codemonkeychris) merged commit a297136 into main Apr 22, 2026
1 check passed
@codemonkeychris
Chris Anderson (codemonkeychris) deleted the deps/winappsdk-2.0.0-preview2 branch April 22, 2026 19:07
@codemonkeychris
Chris Anderson (codemonkeychris) restored the deps/winappsdk-2.0.0-preview2 branch April 22, 2026 19:08
@codemonkeychris
Chris Anderson (codemonkeychris) deleted the deps/winappsdk-2.0.0-preview2 branch April 22, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants