Repository navigation
Update dependency ReactiveUI.WPF to v28 - #6171
Open
dependencyupdates[bot] wants to merge 1 commit into
Open
dependencyupdates[bot] wants to merge 1 commit into
dependencyupdates[bot] wants to merge 1 commit into
Conversation
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.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
22.3.1→28.0.0Release Notes
reactiveui/reactiveui (ReactiveUI.WPF)
v28.0.0Compare Source
Overview
ReactiveUI 28.0.0 moves every reflection-based and AOT-unsafe API out of the core and platform packages into new opt-in
.Unsafepackages. The main packages are now clean for trimming and Native AOT.ReactiveUI.SourceGenerators7.1.0 adds compile-time replacements for the APIs that moved, so most apps can drop the reflection instead of carrying it.💥 Why this release is breaking
Before 28.0.0, the core packages shipped APIs marked
[RequiresUnreferencedCode]and[RequiresDynamicCode]. On Apple platforms the...Unsafeview hosts raisedIL3050warnings in every Native AOT app, even apps that never used them, and the app could not suppress those warnings (#4561).The fix is to keep those APIs out of the assemblies that every app references. If your code calls one of them, it no longer compiles against the core package alone. You have two ways forward:
.Unsafepackage. The types keep their names and namespaces, so in most cases a package reference and a rebuild is all you need.ReactiveUI.SourceGenerators7.1.0, described below. This is the recommended path for trimmed and Native AOT apps.New opt-in packages
.ReactivevariantReactiveUI.UnsafeReactiveUI.Unsafe.ReactiveReactiveUI.Wpf.UnsafeReactiveUI.Wpf.Unsafe.ReactiveReactiveUI.Winforms.UnsafeReactiveUI.Winforms.Unsafe.ReactiveReactiveUI.WinUI.UnsafeReactiveUI.WinUI.Unsafe.ReactiveReactiveUI.Maui.UnsafeReactiveUI.Maui.Unsafe.ReactiveReactiveUI.AndroidX.UnsafeReactiveUI.AndroidX.Unsafe.ReactiveThese packages are not trimmable and not AOT compatible by design. Apps that stay trim and AOT safe do not need them.
What moved, and what to use instead
ViewModelViewHostUnsafe,RoutedViewHostUnsafe,AutoDataTemplateBindingHookUnsafe,ViewModelControlHostUnsafe,RoutedControlHostUnsafe.Unsafepackage (ReactiveUI.Unsafefor Apple and Android)ViewModelViewHostandRoutedViewHostwith[RegisterView]RegisterViewsForViewModels(assembly)andWithViewsFromAssembly(assembly)ReactiveUI.Unsafe[RegisterView]andRegisterGeneratedViews()AutoPersistandAutoPersistCollectionoverloads without metadataReactiveUI.Unsafe[AutoPersist]and the overloads that takeAutoPersistMetadataReactiveProperty<T>.AddValidation(() => Property)ReactiveUI.Unsafe[ReactiveValidation], or the newAddValidation(displayName, params ValidationAttribute[])ISuspensionHostmembers:GetAppState<T>(),ObserveAppState<T>(),SetupDefaultSuspendResume()ReactiveUI.UnsafeISuspensionHost<TAppState>with a source-generatedJsonTypeInfo<TAppState>ControlFetcherMixins(WireUpControls,GetControl),ResolveStrategy,LayoutViewHostUnsafe,ReactiveViewHostUnsafeReactiveUI.UnsafeandReactiveUI.AndroidX.Unsafe[WireUpControls]Suspension drivers
ISuspensionDrivernow only has theJsonTypeInfo<T>members. The reflection-basedLoadState()andSaveState<T>(T)moved to a new interface,IUnsafeSuspensionDriver, inReactiveUI.Unsafe.IUnsafeSuspensionDriver.DummySuspensionDriverUnsafe,BundleSuspensionDriverUnsafe(Android) andAppSupportJsonSuspensionDriverUnsafe(Apple) are the reflection-capable twins of the built-in drivers.ReactiveUI.Unsafereferenced, the untypedSetupDefaultSuspendResume()still finds the driver the platform registered, and the untypedGetAppState<T>()still loads state for a host that was set up through the typed overload.Other changes in this release
ReactivePropertyMixins.AddValidation(params ValidationAttribute[])andAddValidation(string? displayName, params ValidationAttribute[])in the core package.IReactiveUIBuilder.WithViewsFromAssemblyis no longer an interface member. It is an extension method inReactiveUI.Unsafe.ReactiveUI.Bindingis updated to 12.1.0 andReactiveUI.Primitivesto 10.2.3.✨ Automating the wiring with ReactiveUI.SourceGenerators 7.1.0
ReactiveUI.SourceGenerators7.1.0 adds four generators. Each one replaces a piece of wiring that used to need reflection at run time, or careful hand-written code, with code generated at build time.[RegisterView]: view registration without assembly scanningMark each view. The generator writes one
RegisterGeneratedViews()extension method that registers them all.[RegisterView<TViewModel>]also takes a contract and a singleton flag.[AutoPersist]: persistence metadata without reflectionAdd
[AutoPersist]to a partial[DataContract]class. The generator writes a staticAutoPersistMetadataproperty that lists the[DataMember]properties, soAutoPersistnever has to inspect the type at run time.[ReactiveValidation]: DataAnnotations onReactiveProperty<T>without expressionsAdd
[ReactiveValidation]to a partial class. The generator writes aConfigureValidation()method that applies each property's validation attributes and its[Display(Name = ...)]through the new reflection-freeAddValidationoverload.[WireUpControls]: Android control wiring without resource reflectionThe attributes live in the
ReactiveUI.SourceGenerators.Androidnamespace. The generator writes aWireUpControls()method that callsFindViewById<T>(Resource.Id.*)for each control property. Fragments getWireUpControls(View rootView). Use[WireUpResource("id")]when the resource name differs from the property name, and[IgnoreResource]to skip a property.Runnable versions of all four examples are in
src/examples/Documentation.🗞️ What's Changed
💥 Breaking Changes
77a7449feat!: move reflection and AOT-unsafe APIs into opt-in .Unsafe packages (#4565) @glennawatson🐛 Fixes
0fc845ffix: preserve typed notifications after binding setup (#4559) @glennawatson📦 Dependencies
c5fc8e4chore(deps): update dependency microsoft.windowsappsdk to 2.7.0 (#4551) renovate[bot]🔗 Full Changelog: reactiveui/ReactiveUI@27.0.1...28.0.0
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
Automated services that contributed: renovate[bot]
v27.0.1Compare Source
Overview
ReactiveUI 27.0.1 fixes Apple application builds that fail during .NET 11 trimming with
IL2037andNETSDK1144, and replaces legacy linker preservation with explicit .NET trimming dependencies.Apple and Android trimming
DynamicDependencyannotations on reachable platform registration methods.PreserveAttributetype for binary compatibility.Dependency maintenance
🗞️ What's Changed
🐛 Fixes
622786ffix: preserve Apple linker methods directly @glennawatsonfec601ffix: declare platform trimming dependencies @glennawatson🧹 General Changes
6d9b844ci(renovate): inherit shared update rules @glennawatson🔗 Full Changelog: reactiveui/ReactiveUI@27.0.0...27.0.1
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
v27.0.0Compare Source
ReactiveUI 27.0.0 moves modern .NET support to .NET 10 and .NET 11, removes the .NET 8, .NET 9 and .NET Framework 4.6.2 targets, and updates the Primitives, Binding, SourceGenerators and Splat dependencies. This is a major release because applications targeting the removed frameworks must retarget before upgrading, and projects that disable implicit usings must explicitly import the ReactiveUI namespaces they use.
.NET 8 and .NET 9 removal
.NET 8 and .NET 9 both reached Microsoft's end of support on 10 November 2026. Microsoft no longer provides security fixes, servicing updates or technical support for either version. ReactiveUI's modern .NET targets are now .NET 10 and .NET 11, including their supported UI platform variants. See Microsoft's end-of-support announcement and the .NET support policy.
.NET Framework 4.6.2 (
net462) removalMicrosoft lists the end of support for .NET Framework 4.6.2 as 12 January 2027. We are removing this target ahead of that deadline as part of the same compatibility change. This reduces the legacy build and dependency combinations we maintain. Packages that provide .NET Framework assets target
net47,net471,net472,net48andnet481; available targets vary by package and UI platform. See Microsoft's .NET Framework support policy.Implicit usings respect your project settings
ReactiveUI's transitive package imports now respect the consuming project's
ImplicitUsingssetting. Projects that set it tofalseordisable, or leave it unset, must add explicitusingdirectives for the ReactiveUI and binding namespaces they use. Projects usingtrueorenableretain the automatic imports. This applies to the lean, System.Reactive and WPF package imports. See the change and migration details.Dependencies and platform updates
Upgrading
Retarget .NET 8 or .NET 9 applications to .NET 10 LTS or .NET 11, including the matching platform target for UI applications. For .NET Framework applications, prefer 4.8 or 4.8.1 where supported by your Windows version. Update the ReactiveUI packages used by your application together and review the dependency release notes when upgrading.
If you cannot retarget yet, keep using a compatible ReactiveUI 26.x version while planning the migration. Staying on an older package does not extend Microsoft's runtime support. As with Splat's framework transition, removing these targets lets us focus maintenance and dependency updates on the remaining framework combinations.
🗞️ What's Changed
💥 Breaking Changes
dae5e93fix(build)!: honor consumer implicit usings (#4539) @glennawatson🐛 Fixes
bc21ce2fix(examples): configure the builder test fixture @glennawatsonbe5a638fix(testing): preserve the fluent builder API @glennawatson7265945fix(examples): retain the shell title as instance data @glennawatson830fd10fix: resolve example and test helper diagnostics @glennawatson350aba8fix(ci): build current platform sources @glennawatson9d22679fix: adopt the UIKit scene lifecycle @glennawatson2c0187ffix: satisfy scene lifecycle analyzers @glennawatson637440dfix: preserve the net10 macOS deployment minimum @glennawatson🧹 General Changes
d379116build(deps): remove unused SQLite package versions @glennawatson85f8205build(deps): remove redundant package pins @glennawatson389ee22build: target net10.0 and net11.0, add every .NET Framework TFM, update packages @glennawatson1e398bcci: align workflows with the shared actions-common layout @glennawatson19232ebci: match the required Apple SDK toolchain @glennawatsond78c75dci: match Apple builds to their Xcode workloads @glennawatson9e3004bci: run Windows tests with the referenced Windows App SDK runtime @glennawatson1bbcdabbuild: drop net462 from the .NET Framework targets @glennawatson06abd86build: align analyzers with source generators @glennawatson4a96316ci: simplify package publishing @glennawatsonaa5bfb2build(deps): update ReactiveUI dependencies @glennawatson📦 Dependencies
2f277b0chore(deps): update actions/setup-dotnet digest to0f4a354(#4553) renovate[bot]d9c8d14chore(deps): update dependency roslynator.analyzers to 5.0.1 (#4531) renovate[bot]990046cchore(deps): update dependency microsoft.sourcelink.github to 10.0.403 (#4546) renovate[bot]721f544chore(deps): update actions/download-artifact digest to9000827(#4536) renovate[bot]15b6d89chore(deps): update dependency microsoft.testing.extensions.codecoverage to 18.12.0 (#4537) renovate[bot]🔗 Full Changelog: reactiveui/ReactiveUI@26.0.1...27.0.0
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
🤖 Automated services that contributed: renovate[bot]
v26.0.1Compare Source
🗞️ What's Changed
🧹 General Changes
8831268build(deps): update binding to 9.1.0 (#4533) @glennawatson🔗 Full Changelog: reactiveui/ReactiveUI@26.0.0...26.0.1
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
v26.0.0Compare Source
Summary
ReactiveUI 26.0.0 is a major version because the .NET 11 assemblies are built without runtime-async. The public API does not change.
Why runtime-async is off
await.UseMonoRuntime=truealso run on Mono.Other changes
WhenActivatedis now trim and AOT safe. It watches the view'sViewModelthrough the registeredICreatesObservableForPropertyplugin, as the binding source generator does, instead of reflection. The[RequiresUnreferencedCode]attribute is gone from every viewWhenActivatedoverload, including the WPF ones, so views that callthis.WhenActivated(...)publish with Native AOT without trim warnings.BindCommandUnsafekeeping bindings it had replaced (reactiveui/ReactiveUI.Binding.SourceGenerators#163).🗞️ What's Changed
🐛 Fixes
264b88cfix: make view WhenActivated trim and AOT safe; build without runtime-async (#4532) @glennawatson🔗 Full Changelog: reactiveui/ReactiveUI@25.1.1...26.0.0
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
v25.1.1Compare Source
🗞️ What's Changed
🧹 General Changes
9e5e699build(deps): bump ReactiveUI.Binding to 8.8.0 (#4530) @glennawatson📦 Dependencies
0b69014chore(deps): update dependency publicapisharp.analyzers to 2.1.0 (#4463) renovate[bot]🔗 Full Changelog: reactiveui/ReactiveUI@25.1.0...25.1.1
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
🤖 Automated services that contributed: renovate[bot]
v25.1.0Compare Source
🗞️ What's Changed
🧹 General Changes
6eef2f8build(deps): bump ReactiveUI.Binding to 8.7.0 and ReactiveUI.Primitives to 8.4.0 (#4529) @glennawatson📦 Dependencies
0b69014chore(deps): update dependency publicapisharp.analyzers to 2.1.0 (#4463) renovate[bot]🔗 Full Changelog: reactiveui/ReactiveUI@25.0.1...25.1.0
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
🤖 Automated services that contributed: renovate[bot]
v25.0.1Compare Source
Summary
ReactiveUI 25.0.1 adds back the ability to ask an interaction as an observable through
IInteraction<TInput, TOutput>. ReactiveUI 25.0.0 removed it by accident.IInteraction<TInput, TOutput>.Handle(input)returnsIObservable<TOutput>, as it did in ReactiveUI 24.Interaction<TInput, TOutput>.WhenHandled(input)returns the question as anIObservable<TOutput>.new Interaction<TInput, TOutput>(handlerScheduler)runs each handler on that scheduler, such asRxSchedulers.MainThreadScheduler.Interaction<TInput, TOutput>.Handle(input)still returnsTask<TOutput>, so code written against 25.0.0 keeps compiling.The change comes from ReactiveUI.Binding 8.6.0. The migration guide shows how to use each call.
🗞️ What's Changed
🧹 General Changes
3a1d270build(deps): bump ReactiveUI.Binding to 8.6.0 (#4528) @glennawatson🔗 Full Changelog: reactiveui/ReactiveUI@25.0.0...25.0.1
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
v25.0.0Compare Source
Summary
ReactiveUI 25.0.0 is a major version. Binding moves to a source-generator-first library, the ReactiveUI source generators now come with every install, and the documentation has been rebuilt. Most apps that use
ReactiveObjectand the usual binding calls keep compiling, but read the breaking changes below before you upgrade.Binding moves to ReactiveUI.Binding
WhenAny*,WhenAnyValue,ObservableForProperty,Bind,OneWayBind,BindTo,BindCommand,InvokeCommand,BindInteraction,ToPropertyandObservableAsPropertyHelper<T>keep their names. They now come from ReactiveUI.Binding, which ReactiveUI brings in for you. Existingusing ReactiveUI;code keeps compiling....Unsafeoverload....Unsafetwin that also asks the service locator.Source generators come with ReactiveUI
[Reactive],[ReactiveCommand],[ReactiveCollection],[BindableDerivedList]and[IReactiveObject]generate your view model properties and commands at build time. This is now the recommended way to write view models.[ObservableAsProperty]and[IViewFor]now come from ReactiveUI.Binding.New documentation and examples
src/examples/Documentationhas a runnable example for every public class and method, one project per website page. The website quotes these examples, and each one checks its printed output, so the docs stay in step with the code.Known issues
Interaction.HandlereturnsTask<TOutput>instead ofIObservable<TOutput>. This change was not intended.Other changes
ReactiveRecord. The full list is below.dotnet test --device.🗞️ What's Changed
💥 Breaking Changes
37fa90afeat!: run property observation and binding on ReactiveUI.Binding (#4475) @glennawatsonaba5bb2feat!: bring ReactiveUI.SourceGenerators with ReactiveUI.Core (#4516) @glennawatsonb0262cfrefactor(builder)!: remove BuilderMixins members shadowed by IReactiveUIBuilder (#4498) @glennawatson2a59e1dfeat(routing)!: report navigation through plain observables of values (#4497) @glennawatsone267ccafix(winui)!: build the default item template without XAML type lookup (#4496) @glennawatson6def5a6fix!: make every default view host AOT safe on Binding 8.1.0 (#4505) @glennawatson🐛 Fixes
1a39846fix(maui): navigate from an empty RoutedViewHost and follow ViewModelViewHost contract changes (#4493) @glennawatsona579b33fix(android): stop ServiceBound disposing the caller's context (#4514) @glennawatsona4baf2afix: close first-read race in RxState, RxSuspension and RxCacheSize (#4519) @glennawatsonf0074d3fix(android): raise the view model change when it is set through IViewFor (#4513) @glennawatson037a0f2fix(android): return the display rotation from PlatformOperations.GetOrientation (#4495) @glennawatson8eceb3cfix(apple): ignore lifecycle callbacks that arrive after dispose (#4523) @glennawatson76926d8fix(reactiverecord): keep notification state out of derived record ToString and equality (#4482) @glennawatsona9fb343fix(routing): deliver scheduled notifications in order so Navigate returns its view model (#4484) @glennawatson3d470f9fix(android): skip the layout host's own View in opt-out wire-up (#4512) @glennawatson8dcabadfix: honour ViewContract in WinUI ViewModelViewHost and add ReactiveWindowController (#4527) @glennawatsonde754f8fix(suspension): keep the suspension driver and pending load per host (#4483) @glennawatson8ebe4a1fix(wpf): raise TransitionCompleted once per transition (#4485) @glennawatsonedc6355fix(builder): keep the view locator's mappings and leave global state alone on a second build (#4490) @glennawatson🧹 General Changes
c9645bbbuild(deps): bump ReactiveUI.Binding to 8.3.0 (#4520) @glennawatsonb049aa5build(deps): bump TUnit to 1.69.16 (#4500) @glennawatsond86f9e5build(deps): bump ReactiveUI.SourceGenerators to 4.2.0 (#4524) @glennawatsonc6fa7eabuild(deps): bump ReactiveUI.SourceGenerators to 4.0.1 (#4518) @glennawatsonec21edabuild(deps): bump ReactiveUI.SourceGenerators to 4.1.0 (#4521) @glennawatson92d5953build(deps): bump ReactiveUI.Binding to 8.2.0 (#4515) @glennawatson32746d8build(deps): bump ReactiveUI.Binding to 8.4.0 (#4525) @glennawatson1fcd23cchore: Delete .github/CODEOWNERS @glennawatson✅ Tests
dde34a2test: add Android and iOS device tests run through dotnet test --device (#4506) @glennawatsonf3c4b26test: finish each dispatcher-thread test only after its teardown (#4501) @glennawatson21fb115test(wpf): stop the TransitioningContentControl tests waiting on WPF's render loop (#4499) @glennawatson📝 Documentation
66e73a4docs: add runnable documentation examples for the public API (#4503) @glennawatson8ba04dbdocs(readme): add a Sponsors section @glennawatson04209a0docs: examples for the remaining public API, including Apple platforms (#4526) @glennawatsonbbe16fadocs(examples): show default and Unsafe view hosts after #4505 (#4507) @glennawatson🔗 Full Changelog: reactiveui/ReactiveUI@24.3.0...25.0.0
🙌 Contributions
💖 Thanks to all the contributors: @glennawatson
v24.3.0Compare Source
🗞️ What's Changed
🐛 Fixes
c63ed90fix: use the Primitives main-thread sequencers for WPF, WinUI, WinForms and MAUI (#4474) @glennawatson @Pranay-Kumar-022712bd5fix: add net8-11 -windows targets tConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.
Commands to ignore dependencies
You can trigger dependency actions by commenting on this PR:
@particularbot ignore this major version@particularbot ignore this minor version@particularbot ignore this dependency