A extension to help Xamarin to MAUI migration
Install the upgrade assistant CLI
dotnet tool install upgrade-assistant -g --ignore-failed-sources --version 0.4.421302
Go to project repository and add this extension
upgrade-assistant extensions add UpgradeAssistant.Extension.Maui.Community --version 1.0.7
Or add a upgrade-assistant.json
file to your project repository path
{
"Extensions": [
{
"Name": "UpgradeAssistant.Extension.Maui.Community",
"Version": "1.0.7",
"Source": "https://api.nuget.org/v3/index.json"
},
{
"Name": "Microsoft.DotNet.UpgradeAssistant.Extensions.Maui",
"Version": "0.4.421302",
"Source": "https://api.nuget.org/v3/index.json"
}
]
}
Restore all extensions
upgrade-assistant extensions restore
Migrate your xamarin project to MAUI
upgrade-assistant upgrade {yourprojectname}.csproj --ignore-unsupported-features
Just add Xamarin package map maui equivalent to XamarinPackageMap.json and any Xaml namespace change to XamlNamespaceUpgradeStep