Build issue after updating VS to latest

Sreenivasan, Sreejith 80 Reputation points
2025-10-22T14:27:56.5433333+00:00

I am getting below errors after updating the VS to latest.

Errors:

  1. 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.
  2. 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

  1. 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.
  2. 1.0 is not a valid TargetPlatformVersion for ios. Valid versions include: None
Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

Answer accepted by question author
  1. Michael Le (WICLOUD CORPORATION) 3,495 Reputation points Microsoft External Staff
    2025-10-23T06:34:03.66+00:00

    Hello Sreenivasan,

    To resolve the specific build error you're encountering, you can try update the target framework versions in your project files.

    Add this line to both your main MAUI project and MAUI class library .csproj files:

    <TargetFrameworks>net8.0-android;net8.0-ios11.0</TargetFrameworks>
    

    And remove the SupportedOSPlatformVersion line for iOS if it exists.

    Do I need to update it to .net 9? I like to go with .net 8.

    Since .NET MAUI 10 releases next month, you can still continue development on MAUI 8 for the time being, but start testing your app on MAUI 10 as soon as possible. It is always recommended to keep your projects updated to the latest stable versions.

    You can continue development for now, but be aware of these considerations:

    • Security updates are no longer provided for MAUI 8
    • Xcode compatibility may become an issue for iOS deployments
    • New iOS/Android API features won't be available

    I hope this clarifies.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,191 Reputation points Volunteer Moderator
    2025-10-22T15:43:52.2733333+00:00

    Maui 8 support ended last May. The real issue besides no Maui support is Xcode support. Maui 8 only supports Xcode v16.1 and some point Apple will not support Xcode 16.1 for signing apps. When this happens you will not be able to publish to the store without upgrading to a later version of Maui.

    at this late date, you should be looking at updating to Maui 10, which releases next month.


Your answer

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