.NET 7 -> .NET 8 issue with telerik components on iOS, application crashed

1 Answer 96 Views
BusyIndicator
Nemanja
Top achievements
Rank 1
Nemanja asked on 11 Dec 2023, 11:30 AM
Android version works fine.
iOS version throw error when page has a Telerik Control on it and you can see error below.

Our .csproj file:
<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios;net8.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net8.0-windows10.0.19041.0</TargetFrameworks>
            ....

          <OutputType>Exe</OutputType>
          <UseMaui>true</UseMaui>
          <SingleProject>true</SingleProject>
          <ImplicitUsings>enable</ImplicitUsings>
          <Nullable>enable</Nullable>
             ....
</PropertyGroup>



1 Answer, 1 is accepted

Sort by
0
Accepted
Didi
Telerik team
answered on 13 Dec 2023, 12:16 PM

Hi Nemanja,

We have been reported similar behavior related to the upgrading process from net 7 to net 8. Here are the steps you can follow: 

1) Delete all bin and obj files from the project, close visual studio

2) run the following commands:

dotnet clean
dotnet restore
dotnet build

3) make sure the correct maui workloads are installed for net8

run the following commad:

dotnet workload install maui --source https://api.nuget.org/v3/index.json

Check whether the behavior will be solved. 

Regards,
Didi
Progress Telerik

A brand new .NET MAUI course was just added to the Virtual Classroom. The training course is developed to help you get started with the Telerik UI for .NET MAUI components and features. It aims to put you in the shoes of an engineer who adds new features to an existing application. You can check it out at https://learn.telerik.com
Tags
BusyIndicator
Asked by
Nemanja
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or