Samples for Xamarin.iOS projects should be upgraded to .NET SDK-style projects in Xamarin Support Policy

Sun, Tracy (LNG-SHA) 40 Reputation points
2023-03-20T02:48:22.8133333+00:00

I developed a cross-platform applications with Xamarin.iOS.framework and Xamarin.Mac.framework and Mono.framework.

I found some anxious information in https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin.

I want to know what's the quickest and most effective way to migrate my project to the latest support architecture? and what's the latest support architecture?

Can you give me some document description and sample code to speed up my development.

It's an urgent issue for me, If there's no a good solution to resolve the issue, I think it will stop my subsequent work。

I look forward to hearing from you.

Thanks!

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,861 questions
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,221 Reputation points Microsoft Vendor
    2023-03-24T05:40:25.7766667+00:00

    Hello,

    I want to know what's the quickest and most effective way to migrate my project to the latest support architecture?

    Your projects are Xamarin native projects (iOS, MacOS), you can upgrade them manually. (.NET Upgrade Assistant is currently only available for Windows, and only works with Xamarin.Forms projects.) .

    To upgrade your Xamarin native projects to .NET, you'll first have to update the projects to be SDK-style projects and then update your dependencies to .NET 6+.

    and what's the latest support architecture?

    .NET MAUI apps can be written for iOS 11 or higher, using the latest release of Xcode, macOS 10.15 or higher, using Mac Catalyst. Developing MAUI apps requires Visual Studio 2022 17.3 or greater, or Visual Studio 2022 for Mac 17.4 or greater. In addition, the project can target for .NET 6 or .NET 7. (.NET8 support in progress)

    Can you give me some document description and sample code to speed up my development.

    You can refer to the following docs:
    Upgrade Xamarin.Android, Xamarin.iOS, and Xamarin.Mac projects to .NET - .NET MAUI | Microsoft Learn( When you create a new project for .NET MAC, you can select MacCatalyst or MacOS Application template. It's recommended that you choose MacOS Application template because your Xamarin.Mac application is a Cocoa App, and some features in AppKit are not supported in Maccatalyst )
    Xamarin.iOS project migration - .NET MAUI | Microsoft Learn

    Best Regards,

    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful