Setting Target Frameworks
Napacitor does not pin per-platform SDK versions the way Capacitor pins Android targetSdkVersion to a Capacitor major version. Instead, the target platform version is controlled by the TargetFramework (TFM) in the host's App.csproj and by the .NET workloads installed on your machine. This page explains how the two relate.
TargetFrameworks in App.csproj
The generated host targets all MAUI platforms in a single project:
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
<!-- Windows is added automatically on Windows hosts -->
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
Each platform also declares its minimum OS version:
<SupportedOSPlatformVersion Condition="...'ios'">17.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="...'android'">24.0</SupportedOSPlatformVersion>
<SupportedOSPlatformVersion Condition="...'windows'">10.0.17763.0</SupportedOSPlatformVersion>
When you run npx nap build --target <platform> or npx nap run --target <platform>, the CLI passes -f <TFM> to dotnet build; the target name maps to the TFM of the host project.
Versioned TFMs (iOS / Mac Catalyst)
Apple-platform TFMs carry a version suffix that must match the installed workload pack: net10.0-ios26.0, net10.0-maccatalyst26.0, and so on. The number is the major version of the .NET iOS/Catalyst workload pack (which itself matches an Xcode major version).
To find the number your machine supports:
dotnet workload list
# ios 26.x.xxx/net10.0
# maccatalyst 26.x.xxx/net10.0
If the versioned TFM in App.csproj does not match the installed pack, builds fail with NETSDK1056 ("the specified .NET iOS 27.x requires Xcode 27.1" and similar). Fix by aligning either side:
- Align the TFM (recommended): set
<TargetFrameworks>to the version shown bydotnet workload list; - Align the toolchain: upgrade Xcode, or install a matching pack version via
sudo dotnet workload install ios maccatalyst.
The generated template sets ValidateXcodeVersion=false, so minor Xcode version mismatches are skipped; only the major version has to line up.
Managing workloads
.NET installs platform support as optional workloads:
dotnet workload list # show installed workloads
dotnet workload install maui # Windows + Android MAUI support
dotnet workload install ios maccatalyst # Apple platforms (macOS only)
dotnet workload update # update all installed workloads
Keep in mind:
mauiis the workload for Android and Windows (on Windows); Apple platforms always require macOS and theios/maccatalystworkloads.- Workload packs are versioned independently of the .NET SDK. After a
dotnet workload update, re-check that versioned TFMs (see above) still match the installed packs. - The Android workload requires an Android SDK with the platform API you target (e.g. API 36 for Android 16). Install platform packages via Android Studio's SDK Manager if the build cannot locate them.
Napacitor's own requirements
Napacitor itself targets .NET 10 / MAUI 10 (Microsoft.Maui.Controls 10.0.20, Microsoft.AspNetCore.Components.WebView.Maui 10.0.20) and does not require a specific compileSdk/targetSdk beyond what the workload provides. When Google bumps the required target API level for Play Store submissions, you update the .NET workload and the TFM — no Napacitor upgrade is required (though staying on the latest @napacitor/* packages is recommended).
Custom Target Framework Versions
Custom TFM values work as long as the matching workload pack is installed. The supported matrix is defined by .NET MAUI, not by Napacitor — see .NET MAUI supported platforms.