Migration Xamarin Forms iOS to .NET6 without using MAUI

Jennifer Sanchez 0 Reputation points
2023-02-09T15:46:59.0233333+00:00

Hi everyone, hoping you are doing excellent!

Currently, our organization has a mobile framework based on xamarin forms . We are interested in migrating our framework to .NET6, without using MAUI, we were able to accomplish full migration on the Xamarin.Shared and Xamarin.Android projects. However, on Xamarin.iOS, it doesn't recognize the below namespaces:

  1. Xamarin.Forms.Platform.iOS
  2. Xamarin.iOS

Could you provide us some advice how to proceed in this case and why it is working only on Android? Below you'll find the Xamarin.iOS project definition

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net6.0-ios16.0;xamarinios</TargetFramework>
    <Nullable>enable</Nullable>
    <ImplicitUsings>true</ImplicitUsings>
    <SignAssembly>True</SignAssembly>
    <SupportedOSPlatformVersion>13.0</SupportedOSPlatformVersion>
    <OutputType>Library</OutputType>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Xamarin.Controls.SignaturePad.Forms" Version="3.0.0" />
    <PackageReference Include="Xamarin.Forms" Version="5.0.0.2196" />
  </ItemGroup>
</Project>
.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,107 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,931 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,511 Reputation points
    2023-02-09T20:32:35.8366667+00:00

    to get net 6 & IOS 16 support, you will need to do the namespace to maui upgrade.

    https://devblogs.microsoft.com/xamarin/xamarin-ios-16-android-13-updates/

    note: IOS is different from android in that the .net code must be compiled to native iOS, .net dll's are not supported.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.