A lightweight and extensible toolkit for refactoring and structuring .NET MAUI applications. MRK.MAUI.RefactorKit simplifies common architectural patterns, promotes clean code, and accelerates MAUI development.
$ dotnet add package MRK.MAUI.RefactorKit| Code | Title | Severity | Description |
|---|---|---|---|
| MRK0001 | Property uses OnPropertyChanged/SetProperty in setter | Error | Flags properties that call OnPropertyChanged or SetProperty in their setter. Use [NotifyPropertyChangedFor(nameof(xxxxx))] - [ObservableProperty] instead for MVVM best practices. |
| MRK0002 | DelegateCommand usage detected | Error | Detects usage of DelegateCommand and suggests migration to RelayCommand in .NET MAUI. The code fix renames the command method appropriately, and if the method is async, appends Async to the new method name. This helps modernize your codebase and leverage CommunityToolkit.MVVM best practices. |
| MRK0003 | Command usage detected | Error | Detects usage of Command and suggests migration to RelayCommand in .NET MAUI. The code fix renames the command method appropriately, and if the method is async, appends Async to the new method name. This helps modernize your codebase and leverage CommunityToolkit.MVVM best practices. |