I am getting below errors after updating the VS to latest.
Errors:
- The workload 'net8.0-ios' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
- SupportedOSPlatformVersion 11.0 cannot be higher than TargetPlatformVersion 1.0.
My version details adding below:
Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.14.18 (October 2025)
The project was working fine before updating VS and I am targeting .net 8. I did few workarounds and no luck.
In my .NET MAUI App, I have added .NET Class Library and .NET MAUI Class Library projects. Adding all projects .csproj details below:
.NET MAUI .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
<OutputType>Exe</OutputType>
<RootNamespace>Inventiva</RootNamespace>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<!-- Display name -->
<ApplicationTitle>Inventiva</ApplicationTitle>
<!-- App Identifier -->
<ApplicationId>com.companyname.inventiva</ApplicationId>
<!-- Versions -->
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
<ApplicationVersion>1</ApplicationVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
<!-- Release Build Settings -->
<PublishTrimmed>false</PublishTrimmed>
<RunAOTCompilation>false</RunAOTCompilation>
<PublishReadyToRun>false</PublishReadyToRun>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appicon.svg" Color="#512BD4" />
<MauiSplashScreen Include="Resources\Splash\splashlogo.png" Color="#FFFFFF" />
<!-- Splash Screen -->
<!--<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />-->
<!-- Images -->
<MauiImage Include="Resources\Images\*" />
<MauiImage Update="Resources\Images\dotnet_bot.png" Resize="True" BaseSize="300,185" />
<!-- Custom Fonts -->
<MauiFont Include="Resources\Fonts\*" />
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
</ItemGroup>
<ItemGroup>
<None Remove="Platforms\Android\Assets\pdfjs\build\pdf.mjs" />
//remaining
</ItemGroup>
<ItemGroup>
//nuget packages
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Clinical6SDK\Clinical6SDK.csproj" />
<ProjectReference Include="..\MAUI.Clinical6\MAUI.Clinical6.csproj" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
//nuget packages
</ItemGroup>
</Project>
.NET Class Library .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
//nuget packages
</ItemGroup>
</Project>
.NET MAUI Class Library .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net8.0-android;net8.0-ios</TargetFrameworks>
<UseMaui>true</UseMaui>
<SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
</PropertyGroup>
<ItemGroup>
<AndroidAsset Remove="Platforms\Android\Assets\Extensions\DrawableExtensions.cs" />
</ItemGroup>
<ItemGroup>
<AndroidResource Remove="Platforms\Android\Resources\drawable\pma_background.png" />
//remaining
</ItemGroup>
<ItemGroup>
<None Remove="Platforms\Android\Assets\Roboto-Bold.ttf" />
//remaining
</ItemGroup>
<ItemGroup>
<MauiImage Include="Platforms\Android\Resources\drawable\pma_background.png" />
//remaining
</ItemGroup>
<ItemGroup>
//nuget packages
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
//nuget packages
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Clinical6SDK\Clinical6SDK.csproj" />
</ItemGroup>
<ItemGroup>
<MauiXaml Update="AppShared.xaml">
<Generator>MSBuild:Compile</Generator>
</MauiXaml>
//remaining
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0-android'">
<PackageReference Include="Xamarin.AndroidX.Activity.Ktx">
<Version>1.10.1.2</Version>
</PackageReference>
//Remaining
</ItemGroup>
</Project>
Do I need to update it to .net 9? I like to go with .net 8. I am facing this issue on windows visual studio. I can't build Android application due to this issue. Before updating VS it was working fine.
Update 1
I removed the ios sections from .csproj and now I am able to build and run the Android part.
<TargetFrameworks>net8.0-android</TargetFrameworks> // removed ;net8.0-ios
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
Update 2
I have updated TargetFrameworks and and commented the below line from both MAUI project and MAUI class library .csproj files as per your suggestion.
//Commented below part
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">11.0</SupportedOSPlatformVersion>
But I am getting below errors
- The workload 'net8.0-ios11.0' is out of support and will not receive security updates in the future. Please refer to https://aka.ms/maui-support-policy for more information about the support policy.
- 1.0 is not a valid TargetPlatformVersion for ios. Valid versions include: None