Hello @Dani_S ,
Since targeting .NET 10 is only officially supported in Visual Studio 2026 and later version, you need to download Visual Studio 2026 from the official Microsoft website: https://visualstudio.microsoft.com/downloads/
If you are developing for iOS/Mac, you need to install Xcode 26.
To update your project to target .NET 10, follow these steps:
- Open your project in VS 2026.
- Open
.csprojfile. - Change the
<TargetFramework>element tonet10.0like this:
For Android, while API 21 is still supported in .NET 10, it's recommended to update existing projects to API 24 to avoid unexpected runtime errors.<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks> <TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks><SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">24.0</SupportedOSPlatformVersion> - Update NuGet packages:
Tools > NuGet Package Manager > Manage NuGet Packages for Solution... > Updates tab. - Check workloads and SDKs:
Tools > Get Tools and Featuresto ensure you have the latest .NET 10 SDKs installed, you can check the output ofdotnet workload list. - Replace all deprecated APIs in your code, refer to https://learn.microsoft.com/en-us/dotnet/maui/whats-new/dotnet-10?view=net-maui-10.0
- Delete
binandobjfolders from your project directory. - Rebuild your project:
Build > Rebuild Solution.
I hope this clarifies things.