Skip to content

Releases: matt-goldman/Maui.Plugins.PageResolver

2.0.0 Preview

14 Oct 01:16
6520fc3
Compare
Choose a tag to compare
2.0.0 Preview Pre-release
Pre-release

Preview release of version 2.0.0, updated for .NET 8

Updates

  • Paramaterised ViewModel navigation: Previous version allowed passing of navigation parameters for Pages. This version allows navigation parameters for Pages or ViewModels (it will find the matching constructor).
  • Source generator: The Autoreg package has been deprecated, and the dependency source generator has been updated and moved into the main package.
  • Attributes to override lifetime conventions: The source generator uses conventions to register dependencies with IServiceCollection (transient for Pages and ViewModels and singleton for Services). New attributes ([Singleton] and [Transient]) let you explicitly define the lifetime for a generated dependency registration.

Breaking changes

There are no breaking changes if you are only using the PageResolver package (apart from the baseline .NET 8 dependency)

If you are using the Autoreg package, this has been deprecated. You will need to update your code as follows:

  • No longer need to make the MauiProgram class partial
  • No need for the UseAutoreg partial method definition
  • Change the UseAutoreg extension method to UseAutodependencies on MauiAppBuilder

Installation

Available via NuGet:
https://www.nuget.org/packages/Goldie.MauiPlugins.PageResolver/2.0.0-preview1

Install the 2.0.0-preview1 version in your project (you will need to show pre-release versions if installing via Visual Studio).