Skip to content

MRK.MAUI.RefactorKit is a Roslyn-based analyzer and code fix provider that helps automate the migration from Xamarin.Forms to .NET MAUI by converting legacy property patterns to the new ObservableProperty pattern using CommunityToolkit.Mvvm.

License

Notifications You must be signed in to change notification settings

SkJonko/MRK.MAUI.RefactorKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MRK.MAUI.RefactorKit

Logo

MRK.MAUI.RefactorKit is a Roslyn-based analyzer and code fix provider that helps automate the migration from Xamarin.Forms to .NET MAUI by converting legacy code in the new syntax of MAUI.


Publish NuGet

✨ Features

  • 🔍 Analyzes Xamarin-style properties.
  • 🔧 Automatically refactors them into ObservableProperty fields (CommunityToolkit.Mvvm).
  • 📦 Packaged as a NuGet analyzer — no manual execution required.
  • 🧠 Designed for clean, idiomatic .NET MAUI development.

📦 Installation

Add the NuGet package to your MAUI project:

dotnet add package MRK.MAUI.RefactorKit

Or via Visual Studio NuGet Manager.

🛠 Usage

Simply install the package and build your project.

The analyzer will:

  • Detect Xamarin-style backing fields and properties.
  • Suggest fixes via lightbulb (Ctrl + .) or auto-fix.
  • Transform to the ObservableProperty attribute-based syntax.
  • Transform the DelegateCommand from MVVM to the new RelayCommand syntax.
  • Transform the Command to the new RelayCommand syntax.

Examples

You can find examples of the refactoring in the README.md file of the MRK.MAUI.RefactorKit.Package project.

📌 Requirements

  • .NET MAUI project
  • CommunityToolkit.Mvvm installed

🤝 Contact

If you have any questions, feedback or a bug to report, feel free to open an issue or contact me direct in my mail 😊

Made with ❤️ to simplify your MAUI migration.

About

MRK.MAUI.RefactorKit is a Roslyn-based analyzer and code fix provider that helps automate the migration from Xamarin.Forms to .NET MAUI by converting legacy property patterns to the new ObservableProperty pattern using CommunityToolkit.Mvvm.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages