maui-migration-samples
maui-migration-samples copied to clipboard
[MIGRATION] ZiiDMS Xamarin.Forms to Maui rc2
Environment
Are you on Windows or Mac: windows
Visual Studio Version: Version 17.2.0 Preview 5.0
.NET version dotnet --version
: 6.0.300-preview.22204.3
MAUI version installed: rc2
Your code
Is it an app or a library? App What platforms does it target? UWP/iOS Is it Xamarin.Forms? What version? (PS we recommend only migrating XF 5+) 5 Do you use Xamarin.Essentials? Yes Is your app/library open source? Share the link! no If it isn't OSS, would you be willing to show someone on our team some code in a video call? YES
Migration
Did you follow the steps on the migration wiki Was it successful? NO What went wrong? Details please!
Microsoft .NET Upgrade Assistant v0.2.241603+99dc6c7bf12364ae199f7acd8d0d42c631508de0
We are interested in your feedback! Please use the following link to open a survey: https://aka.ms/DotNetUASurvey
[09:21:34 INF] Loaded 5 extensions
[09:21:35 INF] MSBuild registered from C:\Program Files\dotnet\sdk\3.1.418
[09:21:36 INF] Found Visual Studio v17.2.32422.2 [C:\Program Files\Microsoft Visual Studio\2022\Preview]
[09:21:41 INF] Initializing upgrade step Select an entrypoint
Upgrade Steps
- [Next step] Select an entrypoint
[09:21:41 INF] No state to save
[09:21:41 ERR] Unexpected error
System.MissingMethodException: Method not found: 'System.String NuGet.Frameworks.NuGetFramework.get_Platform()'.
at Microsoft.DotNet.UpgradeAssistant.MSBuild.NuGetTargetFrameworkMonikerComparer.TryParse(String input, TargetFrameworkMoniker& tfm)
at Microsoft.DotNet.UpgradeAssistant.MSBuild.TargetFrameworkMonikerCollection.GetEnumerator()+MoveNext() in //src/components/Microsoft.DotNet.UpgradeAssistant.MSBuild/TargetFrameworkMonikerCollection.cs:line 78
at Microsoft.DotNet.UpgradeAssistant.TargetFramework.TargetFrameworkSelector.GetDefaultTargetFrameworkMoniker(IProject project) in //src/components/Microsoft.DotNet.UpgradeAssistant/TargetFramework/TargetFrameworkSelector.cs:line 69
at Microsoft.DotNet.UpgradeAssistant.TargetFramework.TargetFrameworkSelector.SelectTargetFrameworkAsync(IProject project, CancellationToken token) in //src/components/Microsoft.DotNet.UpgradeAssistant/TargetFramework/TargetFrameworkSelector.cs:line 47
at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.IsCompletedAsync(IUpgradeContext context, IProject project, CancellationToken token)
at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.<>c__DisplayClass16_0.<<IsApplicableImplAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable
1 source, Func
2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 83 at System.Linq.AsyncEnumerable.<AnyAwaitAsyncCore>g__Core|212_0[TSource](IAsyncEnumerable1 source, Func
2 predicate, CancellationToken cancellationToken) in //Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Any.cs:line 81 at Microsoft.DotNet.UpgradeAssistant.Steps.Solution.CurrentProjectSelectionStep.IsApplicableImplAsync(IUpgradeContext context, CancellationToken token) at Microsoft.DotNet.UpgradeAssistant.UpgradeStep.IsApplicableAsync(IUpgradeContext context, CancellationToken token) in //src/common/Microsoft.DotNet.UpgradeAssistant.Abstractions/UpgradeStep.cs:line 223 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade.<>c__DisplayClass13_0.<<ShowUpgradeStepsAsync>b__0>d.MoveNext() in //src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/Commands/Upgrade/ConsoleUpgrade.cs:line 158 --- End of stack trace from previous location --- at System.Linq.AsyncEnumerable.WhereEnumerableAsyncIteratorWithTask1.MoveNextCore() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/Operators/Where.cs:line 277 at System.Linq.AsyncIteratorBase
1.MoveNextAsync() in //Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 70 at System.Linq.AsyncIteratorBase1.MoveNextAsync() in /_/Ix.NET/Source/System.Linq.Async/System/Linq/AsyncIterator.cs:line 75 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade.ShowUpgradeStepsAsync(IEnumerable
1 steps, IUpgradeContext context, CancellationToken token, UpgradeStep currentStep, Int32 offset) in //src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/Commands/Upgrade/ConsoleUpgrade.cs:line 158 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade.ShowUpgradeStepsAsync(IEnumerable`1 steps, IUpgradeContext context, CancellationToken token, UpgradeStep currentStep, Int32 offset) in //src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/Commands/Upgrade/ConsoleUpgrade.cs:line 158 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade.RunAsync(CancellationToken token) in //src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/Commands/Upgrade/ConsoleUpgrade.cs:line 66 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleUpgrade.RunAsync(CancellationToken token) in //src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/Commands/Upgrade/ConsoleUpgrade.cs:line 79 at Microsoft.DotNet.UpgradeAssistant.Cli.ConsoleRunner.StartAsync(CancellationToken token) in /_/src/cli/Microsoft.DotNet.UpgradeAssistant.Cli/ConsoleRunner.cs:line 62 [ ] I couldn't finish the steps [ ] It didn't build after I finished migrating [ ] I need NuGets that aren't compatible with MAUI yet [ ] It built, but the layout/UI is all messed up [ ] I have no idea what happened, please help!!!
Share some details on your migration. Feel free to add screenshots/before + afters, video walkthroughs, blogs, or angry rants. Particularly - what .csproj properties did you get rid of and what could you keep? What code changes did you have to make in your C# and XAML?
What NuGets do you have that don't work for MAUI yet?
Custom Renderers (optional)
Do you have custom renderers in your app? Did you use the MAUI compat package with them, and did it worK? Did you try to rewrite your renderers to the handler architecture? How did that go?
Upgrade Assistant (optional)
Did you use the upgrade assistant to try to upgrade? Did it work?